Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
ErrorCode.h
Go to the documentation of this file.
1 
12 #ifndef __KOME_CORE_ERROR_CODE_H__
13 #define __KOME_CORE_ERROR_CODE_H__
14 
15 
22 unsigned int errorcode( const char* errorName );
23 
30 const char* errorstring( unsigned int errorCode );
31 
36 void errorcleanup( void );
37 
39 const unsigned int ERR_OK = errorcode( "ok" );
40 
42 const unsigned int ERR_FILE_NOT_FOUND = errorcode( "file not found" );
43 
45 const unsigned int ERR_FILE_OPEN_FAILED = errorcode( "file open failed" );
46 
48 const unsigned int ERR_FILE_CLOSE_FAILED = errorcode( "file close failed" );
49 
51 const unsigned int ERR_FILE_READ_FAILED = errorcode( "file read failed" );
52 
54 const unsigned int ERR_FILE_WRITE_FAILED = errorcode( "file write failed" );
55 
57 const unsigned int ERR_PATH_IS_DIRECTORY = errorcode( "path is a directory" );
58 
60 const unsigned int ERR_ILLEGAL_FILE = errorcode( "illegal file" );
61 
63 const unsigned int ERR_ILLEGAL_NAME = errorcode( "illegal name" );
64 
66 const unsigned int ERR_ILLEGAL_VALUE = errorcode( "illegal value" );
67 
69 const unsigned int ERR_NULL_POINTER = errorcode( "null pointer" );
70 
72 const unsigned int ERR_DB = errorcode( "database" );
73 
75 const unsigned int ERR_OTHER = errorcode( "other" );
76 
77 // >>>>>> @Date:2013/06/17 <Add> A.Ozaki
79 const unsigned int ERR_FILE_PARMISSIONS_ILLEGAL = errorcode( "file permisions is illegal" );
80 // <<<<<< @Date:2013/06/17 <Add> A.Ozaki
81 
82 #endif // __KOME_CORE_ERROR_CODE_H__
const unsigned int ERR_NULL_POINTER
Definition: ErrorCode.h:69
void errorcleanup(void)
deallocate error strings object
Definition: ErrorCode.cpp:84
const unsigned int ERR_ILLEGAL_FILE
Definition: ErrorCode.h:60
const unsigned int ERR_ILLEGAL_VALUE
Definition: ErrorCode.h:66
const unsigned int ERR_FILE_OPEN_FAILED
Definition: ErrorCode.h:45
const unsigned int ERR_OK
Definition: ErrorCode.h:39
const unsigned int ERR_FILE_READ_FAILED
Definition: ErrorCode.h:51
const unsigned int ERR_OTHER
Definition: ErrorCode.h:75
const unsigned int ERR_FILE_PARMISSIONS_ILLEGAL
Definition: ErrorCode.h:79
const unsigned int ERR_PATH_IS_DIRECTORY
Definition: ErrorCode.h:57
const unsigned int ERR_ILLEGAL_NAME
Definition: ErrorCode.h:63
const unsigned int ERR_FILE_NOT_FOUND
Definition: ErrorCode.h:42
const char * errorstring(unsigned int errorCode)
get error string for an existing error
Definition: ErrorCode.cpp:60
const unsigned int ERR_FILE_WRITE_FAILED
Definition: ErrorCode.h:54
unsigned int errorcode(const char *errorName)
get new error code
Definition: ErrorCode.cpp:23
const unsigned int ERR_FILE_CLOSE_FAILED
Definition: ErrorCode.h:48
const unsigned int ERR_DB
Definition: ErrorCode.h:72