A Complete Listing of Error Codes

Created: 08/01/1996
Updated: 08/07/1996

Joachim Hammer


The following is a list of all the error codes that are defined in the TSIMMIS library. The relevant files are tmerror.h and tmerror.c. Both files reside in ~tsimmis/tsimmis-1.0/src/common/

	TM_ERR_SYSTEM   = -1,   /* system error */
	TM_NO_ERROR     = 0,    /* no error */
    
	/* ------- common error numbers --------- */
	TM_ERR_MEMORY   = 1,    /* unable to allocate memory */
   
	/* ------- errors for TM_ConnEnd -------- */
	TM_ERR_DATA,            /* data argument is NULL */
	TM_ERR_CONNEND,         /* TM_ConnEnd is NULL */
	TM_ERR_RESULT,          /* result argument is NULL */
	TM_ERR_SEND,            /* error during send */
	TM_ERR_RECV,            /* error during receive */

	/* ------- errors from ssl --------- */
	TM_INIT_FAILED,         /* TM_Init error: failed */
	TM_INIT_TWICE,          /* TM_Init error: already called */
	TM_SOURCE_UNAVAILABLE   /* TM_Source error: Source connection error, etc. */
	TM_TRANSL_FAILED,       /* TM_Translation error: L2M transl. failed */
	TM_STATCONN_FAILED,     /* TM_Status_Connection error: failed */
	TM_STATFORMAT_ERROR,    /* TM_Status_Format error: unreadable */
	TM_QUERY_FAILED,        /* TM_Query error: query failed at source */
	TM_QUERY_SYNTAXERROR,   /* TM_Query error: query has syntax error */
	TM_QUERY_UNSUPPORTED,   /* TM_Query error: query not supp. by client */
	TM_CONVERT_FAILED,      /* TM_Convert error: unable to convert query */
	TM_FETCH_FAILED,        /* TM_Fetch error: unable to fetch result */
	TM_INVALID_REFERENCE,   /* TM_Fetch error: reference invalid */
	TM_NULL_RESULT,         /* TM_Fetch error: result is NULL */
	TM_NEED_SEND,           /* TM_Fetch error (internal to ssl)  */
	TM_NO_SUPPORT,          /* TM_Fetch error:  */
	TM_ANSWER_OVERFLOW, 	/* TM_Fetch error: too many objects in answer */
	/* ------- errors from csl --------- */
	TM_NULL_ARG,            /* TM_Fetch: unexpected null argument */
	TM_ERR_OBJECT,          /* TM_Fetch: received bad TM_Objects */
    
	TM_CLIENT_BUSY,
	TM_BAD_STRUCTURE,
	TM_NOT_RESULT,
    
	/* -------- custom error code --------- */
	TM_CUSTOM               /* custom error code starts here */