|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.brains2b.data.DataException
public class DataException
Implementation of Exception for 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
Field Summary | |
---|---|
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 Summary | |
---|---|
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 t)
Constructor for DataException. |
Method Summary | |
---|---|
int |
getErrorNo()
get the error number for this Exception |
java.lang.String |
getMessage()
get the Message for this Exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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
- Throwable
public 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 t)
message
- String, the message for this Exception, for future multilanguage
support use only the DataException(int) constructorcause
- Throwable
Method Detail |
---|
public 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.Throwable
Throwable.getMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |