public class DataException
extends java.lang.Exception
DataControl and DataController as replacement for
the java.lang.Exception which is used in current versions.
Will be able to define the non specific data store errors by refering to a number only and will support multilanguage support in the future. The as CONSTANT defined error types will be added to. Therefor if you are going to use this, avoid the Numbers 0-9999.
Interface is not subject to change
| Modifier and Type | Field and Description |
|---|---|
static int |
DELETE_FAILED |
static int |
INSERT_FAILED |
static int |
NO_PRIMARY_KEY |
static int |
RECORD_CHANGED |
static int |
RETRIEVE_FAILED |
static int |
UPDATE_FAILED |
| Constructor and Description |
|---|
DataException()
Constructor for DataException.
|
DataException(int errorNo)
Constructor
|
DataException(int errorNo,
java.lang.Throwable cause)
Constructor
|
DataException(java.lang.String message)
Constructor for DataException.
|
DataException(java.lang.String message,
java.lang.Throwable cause)
Constructor for DataException.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorNo()
get the error number for this Exception
|
java.lang.String |
getMessage()
get the Message for this Exception.
|
public static final int RETRIEVE_FAILED
public static final int INSERT_FAILED
public static final int UPDATE_FAILED
public static final int DELETE_FAILED
public static final int RECORD_CHANGED
public static final int NO_PRIMARY_KEY
public DataException()
public DataException(int errorNo)
errorNo - int, the errorNo for this Exception. in future releases
all numbers will be implemented as CONSTANT. Avoid using numbers between 0-9999 for your
own error messages.public DataException(int errorNo,
java.lang.Throwable cause)
errorNo - int, the errorNo for this Exception. in future releases
all numbers will be implemented as CONSTANT. Avoid using numbers between 0-9999 for your
own error messages.cause - Throwablepublic DataException(java.lang.String message)
message - String, the message for this Exception, for future multilanguage
support use only the DataException(int) constructorpublic DataException(java.lang.String message,
java.lang.Throwable cause)
message - String, the message for this Exception, for future multilanguage
support use only the DataException(int) constructorcause - Throwablepublic int getErrorNo()
public java.lang.String getMessage()
In future releases Exceptions which where created with an error number will lookup the appropriate message through a ResourceBundle implementation.
getMessage in class java.lang.ThrowableThrowable.getMessage()