Maatri 0.4 (Build 905)
Embeddable Database Engine

com.bittecsystems.maatri
Class MaatriException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.bittecsystems.maatri.MaatriException
All Implemented Interfaces:
java.io.Serializable

public class MaatriException
extends java.lang.Exception

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.

Exception Types:
FAILURE
CRITICAL_FAILURE
CONNECTION_FAILURE
DUPLICATE_OBJECT
OBJECT_NOT_FOUND
ILLEGAL_STATE
It is left up to the primary application to deal with the reported exception as required.

See Also:
DUPLICATE_OBJECT, OBJECT_NOT_FOUND, ILLEGAL_STATE, Serialized Form

Field 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

FAILURE

public static final 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.

See Also:
Constant Field Values

CRITICAL_FAILURE

public static final int CRITICAL_FAILURE
Exception Type 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.

See Also:
Constant Field Values

CONNECTION_FAILURE

public static final int CONNECTION_FAILURE
Exception Type CONNECTION_FAILURE indicates a failed connection has been detected.

See Also:
Constant Field Values
Method Detail

getMessage

public java.lang.String getMessage()
Returns the exception message formatted as a String describing the nature of the exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
Message.

getExceptionType

public int getExceptionType()
Returns the Exception Type.

Returns:
Exception Type.
See Also:
FAILURE, CRITICAL_FAILURE, CONNECTION_FAILURE

Maatri 0.4 (Build 905)
Embeddable Database Engine

Copyright © 2008-2013 BitTec Systems. All Rights Reserved.