/* error.h  */
#ifndef ERROR_SEEN
#define ERROR_SEEN

/**
* Error status codes
*/
const int SUCCESS = 0;
const int VOERROR = 1;
const int FILE_ERROR = 2;
const int XPATH_RESOURCE_ERROR = 3;
const int XPATH_VTABLE_ERROR = 4;
const int INSUFFICIENT_MEMORY_ERROR = 5;
const int INVALID_DATATYPE_ERROR = 6;
const int PARSING_ERROR = 7;

/*
* Error messages.
*/
const char ERROR_MESSAGES [] [60] =
{
	"",													// 0
	"Error",											// 1
	"File does not exist.",								// 2
	"XPath expression does not result in <RESOURCE>.",	// 3
	"XPath expression does not result in <TABLE>.",		// 4
	"Not enough memory.",								// 5
	"Invalid datatype.",								// 6
	"Error in parsing VOTable document."				// 7

};

const char * const getVOTableErrorMessage(int errorCode);

#endif
