com.rocketsoftware.mvapi.exceptions
Class MVErrors

java.lang.Object
  extended by com.rocketsoftware.mvapi.exceptions.MVErrors

public class MVErrors
extends java.lang.Object

List of error codes from the server


Field Summary
static int ADI_NOT_FOUND
           
static int AQL_ERROR
           
static int CALL_RETURNED_ERROR
           
static int CALL_SUBNAME_NULL
           
static int COLUMN_NOT_FOUND
           
static int CONNECTION_ERROR
           
static int CONNPOOL_ALREADY_OPEN
           
static int CONNPOOL_INVALID_PARAMS
           
static int EXECUTE_CMD_NULL
           
static int EXECUTION_ABORTED
           
static int FILE_NOT_FOUND
           
static int INVALID_ACCOUNT_OR_PASSWORD
           
static int INVALID_USER_OR_PASSWORD
           
static int ITEM_BYTE_COUNT_ERROR
           
static int KEY_ERROR
           
static int KEY_INDEX_ERROR
           
static int MV_FILE_NOT_FOUND
          MV database error codes
static int MV_ITEM_NOT_FOUND
           
static int MVSP_ACCOUNT_MAINT_ERROR
           
static int MVSP_PROTOCOL_ERROR
           
static int NOT_CONNECTED
           
static int RESULT_SET_EMPTY
           
static int RESULT_SET_EOF
           
static int RESULT_SET_INVALID_ROW
           
static int ROOT_ERROR
           
static int ROOT_FILE_NULL
           
static java.lang.String S_ADI_NOT_FOUND
           
static java.lang.String S_AQL_ERROR
           
static java.lang.String S_EXECUTION_ABORTED
           
static java.lang.String S_FILE_NOT_FOUND
          Errors returned from server
static java.lang.String S_INVALID_ACCOUNT
           
static java.lang.String S_INVALID_USER
           
static java.lang.String S_SUB_FILE_NOT_FOUND
           
static java.lang.String S_SUB_NOT_BIN
           
static java.lang.String S_SUB_NOT_CAT
           
static java.lang.String S_SUB_NOT_IN_MD
           
static java.lang.String S_TOO_MANY_USERS
           
static java.lang.String S_USER_LIC_EXCEEDED
           
static int SERVER_CONNECT
           
static int SERVER_ERROR
           
static int SOCKET_IO_ERROR
           
static int STREAM_HEADER_READ_ERROR
           
static int STREAM_NOT_OPEN
           
static int STREAM_OPEN_ERROR
           
static int TOO_MANY_USERS
           
static int TRX_NOT_SUPPORTED
           
static int URL_PARSE_ERROR
          List of error codes for reporting exceptions
 
Constructor Summary
MVErrors()
           
 
Method Summary
static void raiseServerError(java.lang.String result, java.lang.String buffer)
          Raises an exception based on error response from the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_PARSE_ERROR

public static final int URL_PARSE_ERROR
List of error codes for reporting exceptions

See Also:
Constant Field Values

NOT_CONNECTED

public static final int NOT_CONNECTED
See Also:
Constant Field Values

CALL_RETURNED_ERROR

public static final int CALL_RETURNED_ERROR
See Also:
Constant Field Values

RESULT_SET_INVALID_ROW

public static final int RESULT_SET_INVALID_ROW
See Also:
Constant Field Values

RESULT_SET_EOF

public static final int RESULT_SET_EOF
See Also:
Constant Field Values

RESULT_SET_EMPTY

public static final int RESULT_SET_EMPTY
See Also:
Constant Field Values

CONNECTION_ERROR

public static final int CONNECTION_ERROR
See Also:
Constant Field Values

INVALID_ACCOUNT_OR_PASSWORD

public static final int INVALID_ACCOUNT_OR_PASSWORD
See Also:
Constant Field Values

SOCKET_IO_ERROR

public static final int SOCKET_IO_ERROR
See Also:
Constant Field Values

MVSP_ACCOUNT_MAINT_ERROR

public static final int MVSP_ACCOUNT_MAINT_ERROR
See Also:
Constant Field Values

EXECUTE_CMD_NULL

public static final int EXECUTE_CMD_NULL
See Also:
Constant Field Values

CALL_SUBNAME_NULL

public static final int CALL_SUBNAME_NULL
See Also:
Constant Field Values

STREAM_OPEN_ERROR

public static final int STREAM_OPEN_ERROR
See Also:
Constant Field Values

STREAM_HEADER_READ_ERROR

public static final int STREAM_HEADER_READ_ERROR
See Also:
Constant Field Values

ITEM_BYTE_COUNT_ERROR

public static final int ITEM_BYTE_COUNT_ERROR
See Also:
Constant Field Values

MVSP_PROTOCOL_ERROR

public static final int MVSP_PROTOCOL_ERROR
See Also:
Constant Field Values

STREAM_NOT_OPEN

public static final int STREAM_NOT_OPEN
See Also:
Constant Field Values

INVALID_USER_OR_PASSWORD

public static final int INVALID_USER_OR_PASSWORD
See Also:
Constant Field Values

FILE_NOT_FOUND

public static final int FILE_NOT_FOUND
See Also:
Constant Field Values

ADI_NOT_FOUND

public static final int ADI_NOT_FOUND
See Also:
Constant Field Values

EXECUTION_ABORTED

public static final int EXECUTION_ABORTED
See Also:
Constant Field Values

AQL_ERROR

public static final int AQL_ERROR
See Also:
Constant Field Values

COLUMN_NOT_FOUND

public static final int COLUMN_NOT_FOUND
See Also:
Constant Field Values

SERVER_ERROR

public static final int SERVER_ERROR
See Also:
Constant Field Values

SERVER_CONNECT

public static final int SERVER_CONNECT
See Also:
Constant Field Values

TOO_MANY_USERS

public static final int TOO_MANY_USERS
See Also:
Constant Field Values

ROOT_FILE_NULL

public static final int ROOT_FILE_NULL
See Also:
Constant Field Values

ROOT_ERROR

public static final int ROOT_ERROR
See Also:
Constant Field Values

KEY_ERROR

public static final int KEY_ERROR
See Also:
Constant Field Values

KEY_INDEX_ERROR

public static final int KEY_INDEX_ERROR
See Also:
Constant Field Values

TRX_NOT_SUPPORTED

public static final int TRX_NOT_SUPPORTED
See Also:
Constant Field Values

CONNPOOL_ALREADY_OPEN

public static final int CONNPOOL_ALREADY_OPEN
See Also:
Constant Field Values

CONNPOOL_INVALID_PARAMS

public static final int CONNPOOL_INVALID_PARAMS
See Also:
Constant Field Values

S_FILE_NOT_FOUND

public static final java.lang.String S_FILE_NOT_FOUND
Errors returned from server

See Also:
Constant Field Values

S_ADI_NOT_FOUND

public static final java.lang.String S_ADI_NOT_FOUND
See Also:
Constant Field Values

S_INVALID_USER

public static final java.lang.String S_INVALID_USER
See Also:
Constant Field Values

S_INVALID_ACCOUNT

public static final java.lang.String S_INVALID_ACCOUNT
See Also:
Constant Field Values

S_EXECUTION_ABORTED

public static final java.lang.String S_EXECUTION_ABORTED
See Also:
Constant Field Values

S_AQL_ERROR

public static final java.lang.String S_AQL_ERROR
See Also:
Constant Field Values

S_SUB_NOT_IN_MD

public static final java.lang.String S_SUB_NOT_IN_MD
See Also:
Constant Field Values

S_SUB_FILE_NOT_FOUND

public static final java.lang.String S_SUB_FILE_NOT_FOUND
See Also:
Constant Field Values

S_SUB_NOT_BIN

public static final java.lang.String S_SUB_NOT_BIN
See Also:
Constant Field Values

S_SUB_NOT_CAT

public static final java.lang.String S_SUB_NOT_CAT
See Also:
Constant Field Values

S_TOO_MANY_USERS

public static final java.lang.String S_TOO_MANY_USERS
See Also:
Constant Field Values

MV_FILE_NOT_FOUND

public static final int MV_FILE_NOT_FOUND
MV database error codes

See Also:
Constant Field Values

MV_ITEM_NOT_FOUND

public static final int MV_ITEM_NOT_FOUND
See Also:
Constant Field Values

S_USER_LIC_EXCEEDED

public static final java.lang.String S_USER_LIC_EXCEEDED
See Also:
Constant Field Values
Constructor Detail

MVErrors

public MVErrors()
Method Detail

raiseServerError

public static void raiseServerError(java.lang.String result,
                                    java.lang.String buffer)
                             throws MVException
Raises an exception based on error response from the server.

Parameters:
result - message from MVSP server .
buffer - other output from the server.
Throws:
MVException