org.axiondb
public class AxionException extends Exception
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).
Version: $Revision: 1.9 $ $Date: 2005/04/07 19:32:00 $
See Also: @link org.axiondb.util.ExceptionConverter
Field Summary | |
---|---|
protected static 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(String message)
Equivalent to
AxionException(message,null,DEFAULT_VENDOR_CODE) . | |
AxionException(String message, int vendorcode)
Equivalent to
AxionException(message,null,vendorcode) . | |
AxionException(String message, Throwable nested, int vendorcode)
Construct a new AxionExceptionwith the given message , wrapping the
given Throwable.
| |
AxionException(String message, Throwable nested)
Equivalent to
AxionException(message,nested,DEFAULT_VENDOR_CODE) . | |
AxionException(Throwable nested)
Equivalent to
AxionException(null,nested,DEFAULT_VENDOR_CODE) . | |
AxionException(Throwable nested, int vendorcode)
Equivalent to
AxionException(null,nested,vendorcode) . |
Method Summary | |
---|---|
String | getMessage() Returns the detail message string of this AxionException |
Throwable | getNestedThrowable()
Return the ThrowableI'm wrapping, if any.
|
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 |
AxionException(null,null,DEFAULT_VENDOR_CODE)
. AxionException(null,null,vendorcode)
. AxionException(message,null,DEFAULT_VENDOR_CODE)
. AxionException(message,null,vendorcode)
.Parameters: message my detailed message (possibly null
) nested a Throwableto wrap (possibly null
) vendorcode an error code
AxionException(message,nested,DEFAULT_VENDOR_CODE)
. AxionException(null,nested,DEFAULT_VENDOR_CODE)
. AxionException(null,nested,vendorcode)
.Returns: the ThrowableI'm wrapping, if any.
-- 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.