Xplain.Db.Exception

Xplain.Db.Exception(txt, number)

Xplain.Db.Exception class that represents exceptions thrown by all Xplain.Db classes:

// generic errors
Xplain.Db.Exception.ERR_WRONG_CONFIGURATION = 201;
Xplain.Db.Exception.ERR_INTERNAL_ERROR = 202;
Xplain.Db.Exception.ERR_WRONG_AJAXREQUEST = 203;
Xplain.Db.Exception.ERR_AJAXFAILURE = 204;
Xplain.Db.Exception.ERR_JSONPARSEERROR = 205;
Xplain.Db.Exception.ERR_SERVERERROR = 206;
Xplain.Db.Exception.ERR_FETCHINGSTATES = 207;
Xplain.Db.Exception.ERR_REFERENCEFORMAT = 208;

// selection errors
Xplain.Db.Exception.SELECTION_ERROR_CONFIGURATION = 301;
Xplain.Db.Exception.SELECTION_ERROR_NOQUERYASSIGNED = 302;
Xplain.Db.Exception.SELECTION_ERROR_ALREADYSET = 303;
Xplain.Db.Exception.SELECTION_ERROR_QUERYOPEN = 304;

// target errors
Xplain.Db.Exception.TARGET_ERROR_CONFIGURATION = 401;
Xplain.Db.Exception.TARGET_ERROR_NOQUERYASSIGNED = 402;
Xplain.Db.Exception.TARGET_ERROR_SYNTAX = 403;

// login/logout errors
Xplain.Db.Exception.USER_CONNECTION_ERROR = 501;
Xplain.Db.Exception.USER_ERROR_CONFIGURATION = 502;
Xplain.Db.Exception.USER_CALLBACK_ERROR = 503;

// session errors
Xplain.Db.Exception.SESSION_WRONGTARGETSYNTAX = 601;

// groupby errors
Xplain.Db.Exception.GROUPBY_ERROR_CONFIGURATION = 701;
Xplain.Db.Exception.GROUPBY_ERROR_NOQUERYASSIGNED = 702;

// aggregation errors
Xplain.Db.Exception.AGGREGATION_ERROR_CONFIGURATION = 801;
Xplain.Db.Exception.AGGREGATION_ERROR_NOQUERYASSIGNED = 802;

// configuration errors
Xplain.Db.Exception.CONFIG_WRONG_TYPE = 901;

// batch errors
Xplain.Db.Exception.BATCH_ALREADYSTARTED = 1001;
Xplain.Db.Exception.BATCH_NOTYETSTARTED = 1002;

getErrorCode

getErrorCode()

returns the error code

Returns

errorCode {int} The error code. See class description for a list of all error codes.

getErrorMessage

getErrorMessage()

returns the error message

Returns

errorMsg {string} The error message.