|
Servoy 5.x Public API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.servoy.j2db.util.ServoyException
public class ServoyException
IMPORTANT: The names are exposed to javascripting do not refactor names!
| 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 |
|---|
public static final int ABSTRACT_FORM
public static final int ACQUIRE_LOCK_FAILURE
public static final int BAD_SQL_SYNTAX
public static final int CLIENT_NOT_AUTHORIZED
public static final int DATA_ACCESS_RESOURCE_FAILURE
public static final int DATA_INTEGRITY_VIOLATION
public static final int DEADLOCK
public static final int DELETE_NOT_GRANTED
public static final int EXECUTE_PROGRAM_FAILED
public static final int INCORRECT_LOGIN
public static final int INVALID_INPUT
public static final int INVALID_INPUT_FORMAT
public static final int INVALID_RESULTSET_ACCESS
public static final int MAINTENANCE_MODE
public static final int NO_ACCESS
public static final int NO_CREATE_ACCESS
public static final int NO_DELETE_ACCESS
public static final int NO_LICENSE
public static final int NO_MODIFY_ACCESS
public static final int NO_PARENT_DELETE_WITH_RELATED_RECORDS
public static final int NO_RELATED_CREATE_ACCESS
public static final int PERMISSION_DENIED
public static final int RECORD_LOCKED
public static final int RECORD_VALIDATION_FAILED
public static final int SAVE_FAILED
protected final Object[] tagValues
public static final int UNKNOWN_DATABASE_EXCEPTION
| Constructor Detail |
|---|
public ServoyException()
public ServoyException(int errorCode)
public ServoyException(int errorCode,
Object[] values)
| Method Detail |
|---|
public int findErrorCode()
public Class<?>[] getAllReturnedTypes()
getAllReturnedTypes in interface com.servoy.j2db.scripting.IReturnedTypesProviderIReturnedTypesProvider.getAllReturnedTypes()public int getErrorCode()
public String getMessage()
getMessage in class Throwablepublic boolean hasErrorCode(int code)
public int js_getErrorCode()
public String js_getMessage()
public String toString()
toString in class ThrowableThrowable.toString()
|
Copyright © 2010 Servoy B.V. | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||