Servoy 5.x Public API

com.servoy.j2db.util
Class ServoyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.servoy.j2db.util.ServoyException
All Implemented Interfaces:
IConstantsObject, IJavaScriptType, com.servoy.j2db.scripting.IReturnedTypesProvider, Serializable
Direct Known Subclasses:
RepositoryException

public class ServoyException
extends Exception
implements com.servoy.j2db.scripting.IReturnedTypesProvider, IConstantsObject

IMPORTANT: The names are exposed to javascripting do not refactor names!

See Also:
Serialized Form

Nested Class Summary
static class ServoyException.InternalCodes
          Error codes not available from java-script.
 
Field Summary
static int ABSTRACT_FORM
          Exception code for ABSTRACT_FORM.
static int ACQUIRE_LOCK_FAILURE
          Exception code for ACQUIRE_LOCK_FAILURE.
static int BAD_SQL_SYNTAX
          Exception code for BAD_SQL_SYNTAX.
static int CLIENT_NOT_AUTHORIZED
          Exception code for CLIENT_NOT_AUTHORIZED.
static int DATA_ACCESS_RESOURCE_FAILURE
          Exception code for DATA_ACCESS_RESOURCE_FAILURE.
static int DATA_INTEGRITY_VIOLATION
          Exception code for DATA_INTEGRITY_VIOLATION.
static int DEADLOCK
          Exception code for DEADLOCK.
static int DELETE_NOT_GRANTED
          Exception code for DELETE_NOT_GRANTED.
static int EXECUTE_PROGRAM_FAILED
          Exception code for EXECUTE_PROGRAM_FAILED.
static int INCORRECT_LOGIN
          Exception code for INCORRECT_LOGIN.
static int INVALID_INPUT
          Exception code for INVALID_INPUT.
static int INVALID_INPUT_FORMAT
          Exception code for INVALID_INPUT_FORMAT.
static int INVALID_RESULTSET_ACCESS
          Exception code for INVALID_RESULTSET_ACCESS.
static int MAINTENANCE_MODE
          Exception code for MAINTENANCE_MODE.
static int NO_ACCESS
          Exception code for NO_ACCESS.
static int NO_CREATE_ACCESS
          Exception code for NO_CREATE_ACCESS.
static int NO_DELETE_ACCESS
          Exception code for NO_DELETE_ACCESS.
static int NO_LICENSE
          Exception code for NO_LICENSE.
static int NO_MODIFY_ACCESS
          Exception code for NO_MODIFY_ACCESS.
static int NO_PARENT_DELETE_WITH_RELATED_RECORDS
          Exception code for NO_PARENT_DELETE_WITH_RELATED_RECORDS.
static int NO_RELATED_CREATE_ACCESS
          Exception code for NO_RELATED_CREATE_ACCESS.
static int PERMISSION_DENIED
          Exception code for PERMISSION_DENIED.
static int RECORD_LOCKED
          Exception code for RECORD_LOCKED.
static int RECORD_VALIDATION_FAILED
          Exception code for RECORD_VALIDATION_FAILED.
static int SAVE_FAILED
          Exception code for SAVE_FAILED.
protected  Object[] tagValues
           
static int UNKNOWN_DATABASE_EXCEPTION
          Exception code for UNKNOWN_DATABASE_EXCEPTION.
 
Constructor Summary
ServoyException()
           
ServoyException(int errorCode)
           
ServoyException(int errorCode, Object[] values)
           
 
Method Summary
 int findErrorCode()
           
 Class<?>[] getAllReturnedTypes()
           
 int getErrorCode()
          Returns the errorCode.
 String getMessage()
           
 boolean hasErrorCode(int code)
           
 int js_getErrorCode()
          Returns the error code for this ServoyException.
 String js_getMessage()
          Returns the string message for this ServoyException.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ABSTRACT_FORM

public static final int ABSTRACT_FORM
Exception code for ABSTRACT_FORM.

See Also:
Constant Field Values

ACQUIRE_LOCK_FAILURE

public static final int ACQUIRE_LOCK_FAILURE
Exception code for ACQUIRE_LOCK_FAILURE.

See Also:
Constant Field Values

BAD_SQL_SYNTAX

public static final int BAD_SQL_SYNTAX
Exception code for BAD_SQL_SYNTAX.

See Also:
Constant Field Values

CLIENT_NOT_AUTHORIZED

public static final int CLIENT_NOT_AUTHORIZED
Exception code for CLIENT_NOT_AUTHORIZED.

See Also:
Constant Field Values

DATA_ACCESS_RESOURCE_FAILURE

public static final int DATA_ACCESS_RESOURCE_FAILURE
Exception code for DATA_ACCESS_RESOURCE_FAILURE.

See Also:
Constant Field Values

DATA_INTEGRITY_VIOLATION

public static final int DATA_INTEGRITY_VIOLATION
Exception code for DATA_INTEGRITY_VIOLATION.

See Also:
Constant Field Values

DEADLOCK

public static final int DEADLOCK
Exception code for DEADLOCK.

See Also:
Constant Field Values

DELETE_NOT_GRANTED

public static final int DELETE_NOT_GRANTED
Exception code for DELETE_NOT_GRANTED.

See Also:
Constant Field Values

EXECUTE_PROGRAM_FAILED

public static final int EXECUTE_PROGRAM_FAILED
Exception code for EXECUTE_PROGRAM_FAILED.

See Also:
Constant Field Values

INCORRECT_LOGIN

public static final int INCORRECT_LOGIN
Exception code for INCORRECT_LOGIN.

See Also:
Constant Field Values

INVALID_INPUT

public static final int INVALID_INPUT
Exception code for INVALID_INPUT.

See Also:
Constant Field Values

INVALID_INPUT_FORMAT

public static final int INVALID_INPUT_FORMAT
Exception code for INVALID_INPUT_FORMAT.

See Also:
Constant Field Values

INVALID_RESULTSET_ACCESS

public static final int INVALID_RESULTSET_ACCESS
Exception code for INVALID_RESULTSET_ACCESS.

See Also:
Constant Field Values

MAINTENANCE_MODE

public static final int MAINTENANCE_MODE
Exception code for MAINTENANCE_MODE.

See Also:
Constant Field Values

NO_ACCESS

public static final int NO_ACCESS
Exception code for NO_ACCESS.

See Also:
Constant Field Values

NO_CREATE_ACCESS

public static final int NO_CREATE_ACCESS
Exception code for NO_CREATE_ACCESS.

See Also:
Constant Field Values

NO_DELETE_ACCESS

public static final int NO_DELETE_ACCESS
Exception code for NO_DELETE_ACCESS.

See Also:
Constant Field Values

NO_LICENSE

public static final int NO_LICENSE
Exception code for NO_LICENSE.

See Also:
Constant Field Values

NO_MODIFY_ACCESS

public static final int NO_MODIFY_ACCESS
Exception code for NO_MODIFY_ACCESS.

See Also:
Constant Field Values

NO_PARENT_DELETE_WITH_RELATED_RECORDS

public static final int NO_PARENT_DELETE_WITH_RELATED_RECORDS
Exception code for NO_PARENT_DELETE_WITH_RELATED_RECORDS.

See Also:
Constant Field Values

NO_RELATED_CREATE_ACCESS

public static final int NO_RELATED_CREATE_ACCESS
Exception code for NO_RELATED_CREATE_ACCESS.

See Also:
Constant Field Values

PERMISSION_DENIED

public static final int PERMISSION_DENIED
Exception code for PERMISSION_DENIED.

See Also:
Constant Field Values

RECORD_LOCKED

public static final int RECORD_LOCKED
Exception code for RECORD_LOCKED.

See Also:
Constant Field Values

RECORD_VALIDATION_FAILED

public static final int RECORD_VALIDATION_FAILED
Exception code for RECORD_VALIDATION_FAILED.

See Also:
Constant Field Values

SAVE_FAILED

public static final int SAVE_FAILED
Exception code for SAVE_FAILED.

See Also:
Constant Field Values

tagValues

protected final Object[] tagValues

UNKNOWN_DATABASE_EXCEPTION

public static final int UNKNOWN_DATABASE_EXCEPTION
Exception code for UNKNOWN_DATABASE_EXCEPTION.

See Also:
Constant Field Values
Constructor Detail

ServoyException

public ServoyException()

ServoyException

public ServoyException(int errorCode)

ServoyException

public ServoyException(int errorCode,
                       Object[] values)
Method Detail

findErrorCode

public int findErrorCode()

getAllReturnedTypes

public Class<?>[] getAllReturnedTypes()
Specified by:
getAllReturnedTypes in interface com.servoy.j2db.scripting.IReturnedTypesProvider
See Also:
IReturnedTypesProvider.getAllReturnedTypes()

getErrorCode

public int getErrorCode()
Returns the errorCode.

Returns:
int

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

hasErrorCode

public boolean hasErrorCode(int code)

js_getErrorCode

public int js_getErrorCode()
Returns the error code for this ServoyException. Can be one of the constants declared in ServoyException.

Returns:
the error code for this ServoyException. Can be one of the constants declared in ServoyException.

js_getMessage

public String js_getMessage()
Returns the string message for this ServoyException.

Returns:
the string message for this ServoyException.

toString

public String toString()
Overrides:
toString in class Throwable
See Also:
Throwable.toString()

Copyright © 2010 Servoy B.V.