00001
00002 #ifndef ERROR_SEEN
00003 #define ERROR_SEEN
00004
00008 const int SUCCESS = 0;
00009 const int VOERROR = 1;
00010 const int FILE_ERROR = 2;
00011 const int XPATH_RESOURCE_ERROR = 3;
00012 const int XPATH_VTABLE_ERROR = 4;
00013 const int INSUFFICIENT_MEMORY_ERROR = 5;
00014 const int INVALID_DATATYPE_ERROR = 6;
00015 const int PARSING_ERROR = 7;
00016
00017
00018
00019
00020 const char ERROR_MESSAGES [] [60] =
00021 {
00022 "",
00023 "Error",
00024 "File does not exist.",
00025 "XPath expression does not result in <RESOURCE>.",
00026 "XPath expression does not result in <TABLE>.",
00027 "Not enough memory.",
00028 "Invalid datatype.",
00029 "Error in parsing VOTable document."
00030
00031 };
00032
00033 const char * const getVOTableErrorMessage(int errorCode);
00034
00035 #endif