|
||||||||||
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.axiondb.AxionException
public class AxionException
Root exception for Axion related or specific problems. This exception provides access to Axion-specific SQL Vendor codes. Where possible they are mapped to SQL99 / XOPEN 99 SQL state codes.
SQLState codes consisti of 5 characters. The first 2 characters specify the error class, the last three characters specify the subclass. For example, the SQLSTATE value '22012' consists of class code 22 (data exception) and subclass code 012 (division by zero). * Each of the five characters in a SQLSTATE value is a digit (0..9) or an uppercase Latin letter (A..Z).
Class codes that begin with a digit in the range 0..4 or a letter in the range A..H are reserved for predefined conditions. Within predefined classes, subclass codes that begin with a digit in the range 0..4 or a letter in the range A..H are reserved for predefined sub-conditions. All other subclass codes are reserved for implementation-defined sub-conditions. (see ANSI-SQL99 specification).
org.axiondb.util.ExceptionConverter}
,
Serialized FormField Summary | |
---|---|
protected static java.util.PropertyResourceBundle |
_bundle
|
static int |
DEFAULT_VENDOR_CODE
|
Constructor Summary | |
---|---|
AxionException()
Equivalent to AxionException(null,null,DEFAULT_VENDOR_CODE) . |
|
AxionException(int vendorcode)
Equivalent to AxionException(null,null,vendorcode) . |
|
AxionException(java.lang.String message)
Equivalent to AxionException(message,null,DEFAULT_VENDOR_CODE) . |
|
AxionException(java.lang.String message,
int vendorcode)
Equivalent to AxionException(message,null,vendorcode) . |
|
AxionException(java.lang.String message,
java.lang.Throwable nested)
Equivalent to AxionException(message,nested,DEFAULT_VENDOR_CODE) . |
|
AxionException(java.lang.String message,
java.lang.Throwable nested,
int vendorcode)
Construct a new AxionException with the given message , wrapping the
given Throwable . |
|
AxionException(java.lang.Throwable nested)
Equivalent to AxionException(null,nested,DEFAULT_VENDOR_CODE) . |
|
AxionException(java.lang.Throwable nested,
int vendorcode)
Equivalent to AxionException(null,nested,vendorcode) . |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Returns the detail message string of this AxionException |
java.lang.Throwable |
getNestedThrowable()
Return the Throwable I'm wrapping, if any. |
java.lang.String |
getSQLState()
Returns the five-digit SQL State code (as defined in the ANSI-SQL 99 standard). |
int |
getVendorCode()
Returns the Axion-specific vendor code 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 DEFAULT_VENDOR_CODE
protected static java.util.PropertyResourceBundle _bundle
Constructor Detail |
---|
public AxionException()
AxionException(null,null,DEFAULT_VENDOR_CODE)
.
public AxionException(int vendorcode)
AxionException(null,null,vendorcode)
.
public AxionException(java.lang.String message)
AxionException(message,null,DEFAULT_VENDOR_CODE)
.
public AxionException(java.lang.String message, int vendorcode)
AxionException(message,null,vendorcode)
.
public AxionException(java.lang.String message, java.lang.Throwable nested, int vendorcode)
AxionException
with the given message , wrapping the
given Throwable
.
message
- my detailed message (possibly null
)nested
- a Throwable
to wrap (possibly null
)vendorcode
- an error codepublic AxionException(java.lang.String message, java.lang.Throwable nested)
AxionException(message,nested,DEFAULT_VENDOR_CODE)
.
public AxionException(java.lang.Throwable nested)
AxionException(null,nested,DEFAULT_VENDOR_CODE)
.
public AxionException(java.lang.Throwable nested, int vendorcode)
AxionException(null,nested,vendorcode)
.
Method Detail |
---|
public int getVendorCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getSQLState()
-- any vendor code lower than 100000 is just converted to a String.
-- vendor codes 10000 and over use the following rules: a) first digit indicates the position of a non-digit character.
public java.lang.Throwable getNestedThrowable()
Throwable
I'm wrapping, if any.
Throwable
I'm wrapping, if any.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |