Wheefun I/O Library  0.0.5
Useful I/O Primitives.
error.h
Go to the documentation of this file.
1 /* WFIO - the Wheefun IO Library
2  Copyright (C) 2018 Phillip Kilgore
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <https://www.gnu.org/licenses/>.
16 
17  Additionally, you should have recieved a copy of the GNU Classpath
18  exception, which amends the license to generally permit linking against
19  the software provided herein.
20 */
21 
30 #ifndef WFIO_ERROR_H
31 #define WFIO_ERROR_H
32 
33 #include <wfio/host.h>
34 #include <stdarg.h>
35 
37 
41 typedef enum wfio_ecode_t {
50 
55 
60 
65 
70 
76 
81 
86 
92 
97 
102 
107 
112 
117 
122 
127 
132 
137 
142 
148 
153 
159 
164 
169 } wfio_ecode_t;
170 
171 enum {
176 };
177 
181 WFIO_DLL extern const char* const WFIO_EMSG[WFIO_E_COUNT_];
182 
189 
190 WFIO_DLL wfio_ecode_t wfio_error_from_doscall(int value);
191 
193 
194 #endif
An error occurred because there is no such file or directory.
Definition: error.h:147
An error occurred because the resource is not a directory.
Definition: error.h:141
An error code indicating that the object does not exist.
Definition: error.h:54
An error occurred because the resource exists.
Definition: error.h:116
An error occurred because the value is not in domain.
Definition: error.h:80
#define WFIO_DLL
Mark the symbol as an element of the library.
Definition: host.h:397
#define WFIO_C_BEGIN
Definition: host.h:477
An error code indicating that the cause is unknown.
Definition: error.h:49
An error occurred because the directory was not empty.
Definition: error.h:152
An error occured because of an illegal multibyte sequence.
Definition: error.h:75
An error occurred because the call was not recognized.
Definition: error.h:168
wfio_ecode_t
The type of an error code provided by WFIO.
Definition: error.h:41
An error occurred because the resources doesn&#39;t exist.
Definition: error.h:121
An error occurred because the value cannot fit in the supplied type.
Definition: error.h:91
An error occurred because a generic I/O error occured.
Definition: error.h:96
An error occurred because the resource is not a file.
Definition: error.h:131
Host environment detection.
An error occurred because the resource is a directory.
Definition: error.h:136
WFIO_DLL wfio_ecode_t wfio_error_from_errno(int value)
Translate an OS-specific error code to a WFIO error.
An error occurred because the operation was not permitted.
Definition: error.h:106
An error code indicating that the argument is invalid.
Definition: error.h:59
An error occurred because the resource is a file.
Definition: error.h:126
#define WFIO_C_END
Definition: host.h:485
An "error code" used to indicate success.
Definition: error.h:45
An error occurred while trying to allocate memory.
Definition: error.h:64
The number of error codes provided by WFIO.
Definition: error.h:175
An error occurred because the function isn&#39;t implemented.
Definition: error.h:69
WFIO_DLL const char *const WFIO_EMSG[WFIO_E_COUNT_]
String representations of the error codes provided by WFIO.
An error occurred because the value is not in range.
Definition: error.h:85
An error occurred because the file descriptor was not valid.
Definition: error.h:163
An error occurred because permission was denied.
Definition: error.h:101
An error occurred because there are too many open files.
Definition: error.h:111
An error occurred because there is no space left on the device.
Definition: error.h:158