ev3duder
0.3.0
EV3 Downloader/Uploader
Main Page
Related Pages
Data Structures
Files
File List
Globals
error.h
Go to the documentation of this file.
1
8
#ifndef EV3DUDER_ERROR_H
9
#define EV3DUDER_ERROR_H
10
#undef EXTERN
11
#ifdef MAIN
13
#define EXTERN
14
#else
15
#define EXTERN extern
16
#endif
17
18
#include "
defs.h
"
20
enum
ERR
{
ERR_UNK
= 0,
ERR_ARG
,
ERR_IO
,
ERR_FTOOBIG
,
ERR_NOMEM
,
ERR_COMM
,
ERR_VM
,
ERR_SYS
,
ERR_END
};
22
enum
{
VM_OK
= 0x03,
VM_ERROR
= 0x05};
23
25
EXTERN
const
char
*
errmsg
;
26
31
enum
{
32
SUCCESS
= 0,
33
UNKNOWN_HANDLE
,
34
HANDLE_NOT_READY
,
35
CORRUPT_FILE
,
36
NO_HANDLES_AVAILABLE
,
37
NO_PERMISSION
,
38
ILLEGAL_PATH
,
39
FILE_EXITS
,
40
END_OF_FILE
,
41
SIZE_ERROR
,
42
UNKNOWN_ERROR
,
43
ILLEGAL_FILENAME
,
44
ILLEGAL_CONNECTION
,
45
46
ERRORS_END
47
};
52
EXTERN
const
char
*
const
ev3_error_msgs
[
ERRORS_END
+ 1]
53
#ifdef MAIN
54
= {
55
[
SUCCESS
] =
"SUCCESS"
,
56
[
UNKNOWN_HANDLE
] =
"UNKNOWN_HANDLE: Path doesn't exist"
,
57
[
HANDLE_NOT_READY
] =
"HANDLE_NOT_READY"
,
58
[
CORRUPT_FILE
] =
"CORRUPT_FILE"
,
59
[
NO_HANDLES_AVAILABLE
] =
"NO_HANDLES_AVAILABLE: Path doesn't resolve to a valid file"
,
60
[
NO_PERMISSION
] =
"NO_PERMISSION: File doesn't exist"
,
61
[
ILLEGAL_PATH
] =
"ILLEGAL_PATH"
,
62
[
FILE_EXITS
] =
"FILE_EXITS"
,
63
[
END_OF_FILE
] =
"END_OF_FILE"
,
64
[
SIZE_ERROR
] =
"SIZE_ERROR: Can't write here. Is SD Card properly inserted?"
,
65
[
UNKNOWN_ERROR
] =
"UNKNOWN_ERROR: No such directory"
,
66
[
ILLEGAL_FILENAME
] =
"ILLEGAL_FILENAME"
,
67
[
ILLEGAL_CONNECTION
] =
"ILLEGAL_CONNECTION"
,
68
[
ERRORS_END
] = NULL,
69
}
70
#endif
71
;
72
73
#endif
74
ERR_NOMEM
Definition:
error.h:20
UNKNOWN_ERROR
Definition:
error.h:42
ERRORS_END
Definition:
error.h:46
ILLEGAL_PATH
Definition:
error.h:38
ERR_IO
Definition:
error.h:20
ILLEGAL_FILENAME
Definition:
error.h:43
NO_HANDLES_AVAILABLE
Definition:
error.h:36
CORRUPT_FILE
Definition:
error.h:35
defs.h
ERR_ARG
Definition:
error.h:20
ERR
ERR
Errors returnable from main.
Definition:
error.h:20
ERR_VM
Definition:
error.h:20
ERR_SYS
Definition:
error.h:20
UNKNOWN_HANDLE
Definition:
error.h:33
HANDLE_NOT_READY
Definition:
error.h:34
ev3_error_msgs
EXTERN const char *const ev3_error_msgs[ERRORS_END+1]
Definition:
error.h:71
ERR_FTOOBIG
Definition:
error.h:20
SIZE_ERROR
Definition:
error.h:41
ILLEGAL_CONNECTION
Definition:
error.h:44
FILE_EXITS
Definition:
error.h:39
VM_OK
Definition:
error.h:22
ERR_END
Definition:
error.h:20
EXTERN
#define EXTERN
For avoiding the need to separately define and declare stuff.
Definition:
error.h:15
NO_PERMISSION
Definition:
error.h:37
ERR_COMM
Definition:
error.h:20
SUCCESS
Definition:
error.h:32
ERR_UNK
Definition:
error.h:20
VM_ERROR
Definition:
error.h:22
errmsg
EXTERN const char * errmsg
global variable for last error message
Definition:
error.h:25
END_OF_FILE
Definition:
error.h:40
src
error.h
Generated on Wed Jun 8 2016 15:05:11 for ev3duder by
1.8.10