|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.brains2b.data.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 TODO Implement CONSTANTS en ResourceBundle for the non specific data store errors.
| Field Summary | |
static int |
RECORD_CHANGED
|
| Constructor Summary | |
DataException()
Constructor for DataException. |
|
DataException(int errorNo)
Constructor |
|
DataException(java.lang.String message)
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 RECORD_CHANGED
| 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(java.lang.String message)
message - String, the message for this Exception, for future multilanguage
support use only the DataException(int) constructor| 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.ThrowableThrowable.getMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||