Main Page Class Hierarchy Compound List File List Compound Members

# error.h

    00001 /* error.h  */
    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 * Error messages.
    00019 */
    00020 const char ERROR_MESSAGES [] [60] =
    00021 {
    00022         "",                                                                                                     // 0
    00023         "Error",                                                                                        // 1
    00024         "File does not exist.",                                                         // 2
    00025         "XPath expression does not result in <RESOURCE>.",      // 3
    00026         "XPath expression does not result in <TABLE>.",         // 4
    00027         "Not enough memory.",                                                           // 5
    00028         "Invalid datatype.",                                                            // 6
    00029         "Error in parsing VOTable document."                            // 7
    00030
    00031 };
    00032
    00033 const char * const getVOTableErrorMessage(int errorCode);
    00034
    00035 #endif