1 /**
  2  * Define CUBRID error messages
  3  */
  4 
  5 exports.ERROR_NEW_BROKER_PORT = 'Error receiving a new connection port!';
  6 exports.ERROR_CONNECTION_ALREADY_OPENED = 'The connection is already opened! - denying a second connection request.';
  7 exports.ERROR_CONNECTION_ALREADY_PENDING = 'A connection is already in progress! - denying current connection request.';
  8 exports.ERROR_CONNECTION_ALREADY_CLOSED = 'The connection is already closed!';
  9 exports.ERROR_QUERY_ALREADY_PENDING = 'Another query is already in progress! - denying current query request.';
 10 exports.ERROR_NO_ACTIVE_QUERY = 'No active query with this handle!';
 11 exports.ERROR_NO_ROLLBACK = 'AutoCommitMode is enabled! - denying rollback request.';
 12 exports.ERROR_ON_CLOSE_QUERY_HANDLE = 'Error closing request: ';
 13 exports.ERROR_INPUT_VALIDATION = 'Error validating input parameters.';
 14 exports.ERROR_INVALID_DATA_TYPE = 'Error:Invalid data type.';
 15 exports.ERROR_INVALID_LOB_POSITION = 'Error: Invalid LOB position';
 16 
 17 exports.CASErrorMsgId = [
 18   ['CAS_ER_DBMS' , -1000],
 19   ['CAS_ER_INTERNAL' , -1001],
 20   ['CAS_ER_NO_MORE_MEMORY' , -1002],
 21   ['CAS_ER_COMMUNICATION' , -1003],
 22   ['CAS_ER_ARGS' , -1004],
 23   ['CAS_ER_TRAN_TYPE' , -1005],
 24   ['CAS_ER_SRV_HANDLE' , -1006],
 25   ['CAS_ER_NUM_BIND' , -1007],
 26   ['CAS_ER_UNKNOWN_U_TYPE' , -1008],
 27   ['CAS_ER_DB_VALUE' , -1009],
 28   ['CAS_ER_TYPE_CONVERSION' , -1010],
 29   ['CAS_ER_PARAM_NAME' , -1011],
 30   ['CAS_ER_NO_MORE_DATA' , -1012],
 31   ['CAS_ER_OBJECT' , -1013],
 32   ['CAS_ER_OPEN_FILE' , -1014],
 33   ['CAS_ER_SCHEMA_TYPE' , -1015],
 34   ['CAS_ER_VERSION' , -1016],
 35   ['CAS_ER_FREE_SERVER' , -1017],
 36   ['CAS_ER_NOT_AUTHORIZED_CLIENT' , -1018],
 37   ['CAS_ER_QUERY_CANCEL' , -1019],
 38   ['CAS_ER_NOT_COLLECTION' , -1020],
 39   ['CAS_ER_COLLECTION_DOMAIN' , -1021],
 40   ['CAS_ER_NO_MORE_RESULT_SET' , -1022],
 41   ['CAS_ER_INVALID_CALL_STMT' , -1023],
 42   ['CAS_ER_STMT_POOLING' , -1024],
 43   ['CAS_ER_DBSERVER_DISCONNECTED' , -1025],
 44   ['CAS_ER_MAX_PREPARED_STMT_COUNT_EXCEEDED' , -1026],
 45   ['CAS_ER_HOLDABLE_NOT_ALLOWED' , -1027],
 46   ['CAS_ER_NOT_IMPLEMENTED' , -1100],
 47   ['CAS_ER_IS' , -1200]
 48 ];
 49