|
Maatri 0.4 (Build 905) Embeddable Database Engine |
|||||||||
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.bittecsystems.maatri.MaatriException
public class MaatriException
MaatriException
class provides a way to capture exceptions reported by the Maatri Embeddable Database Engine
.
Exceptions are communicated back to the primary application via Exception Types.
FAILURE
CRITICAL_FAILURE
CONNECTION_FAILURE
DUPLICATE_OBJECT
OBJECT_NOT_FOUND
ILLEGAL_STATE
DUPLICATE_OBJECT
,
OBJECT_NOT_FOUND
,
ILLEGAL_STATE
,
Serialized FormField Summary | |
---|---|
static int |
CONNECTION_FAILURE
Exception Type CONNECTION_FAILURE indicates a failed connection has been detected. |
static int |
CRITICAL_FAILURE
Exception Type CRITICAL_FAILURE indicates a severe error may have occured during a data manipulation or I/O operation. |
static int |
FAILURE
Exception Type FAILURE indicates database operation failures like
Operation Failures:
Auto-increment
Duplicate key
Class mismatch between Original object and Updated object
PrimaryID mismatch between Original object and Updated object
Class record not found for fetch
It is recommended that the primary application take appropriate action after assessing each exception message. |
Method Summary | |
---|---|
int |
getExceptionType()
Returns the Exception Type. |
java.lang.String |
getMessage()
Returns the exception message formatted as a String describing the nature of the 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 FAILURE
FAILURE
indicates database operation failures like
Auto-increment
Duplicate key
Class mismatch between Original object and Updated object
PrimaryID mismatch between Original object and Updated object
Class record not found for fetch
public static final int CRITICAL_FAILURE
CRITICAL_FAILURE
indicates a severe error may have occured during a data manipulation or I/O operation.
It is recommended that the connection be terminated gracefully.
public static final int CONNECTION_FAILURE
CONNECTION_FAILURE
indicates a failed connection has been detected.
Method Detail |
---|
public java.lang.String getMessage()
String
describing the nature of the exception.
getMessage
in class java.lang.Throwable
public int getExceptionType()
FAILURE
,
CRITICAL_FAILURE
,
CONNECTION_FAILURE
|
Maatri 0.4 (Build 905) Embeddable Database Engine |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |