|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.xerox.bantam.StorageException
Exception thrown by methods in the Bantam interfaces. This single exception is used for a wide range of problems. The constants defined here are message prefixes indicating particular types of problems so that an application can distinguish some cases.
| Field Summary | |
static int |
BAD_CLASSNAME
User supplied a class name (in a schema) that could not be found. |
static int |
BAD_DOCUMENT
The Document (or document identifier) passed into Bantam as an argument could not be found. |
static int |
INVALID_ARGUMENT
An invalid argument was passed into the Bantam interface. |
static int |
INVALID_FIELD_DESCRIPTOR
Part of a FieldDescriptor does not make sense. |
static int |
INVALID_SET
A violation of property-setting semantics occurred. |
static int |
NOT_PERMITTED
The underlying storage mechanism does not allow the requested operation. |
static int |
SCHEMA_VIOLATION
Attempt to put an item in a field which violates the schema's type rules. |
static int |
UNDERLYING_EXCEPTION
The underlying Storage mechanism failed. |
| Constructor Summary | |
StorageException(Exception ex)
Constructor for "re"-throwing exceptions encountered inside the Bantam implementation. |
|
StorageException(int _tag,
String _message)
Basic constructor. |
|
StorageException(String message)
Basic constructor for internal errors. |
|
StorageException(String prefix,
Exception ex)
Constructor for "re"-throwing exceptions encountered inside the Bantam implementation. |
|
| Method Summary | |
static String |
getStackTrace()
Internal helper function to support building-up of exception strings. |
static String |
getStackTrace(Exception ex)
Internal helper function to support "re"-throwing of exceptions. |
int |
getTag()
|
String |
getTagString()
|
static void |
main(String[] argv)
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int BAD_CLASSNAME
public static final int SCHEMA_VIOLATION
public static final int UNDERLYING_EXCEPTION
public static final int NOT_PERMITTED
public static final int INVALID_FIELD_DESCRIPTOR
public static final int BAD_DOCUMENT
public static final int INVALID_SET
public static final int INVALID_ARGUMENT
| Constructor Detail |
public StorageException(int _tag,
String _message)
_tag - One of the tags documented in this class.detail - An associated free-form message.public StorageException(String message)
public StorageException(Exception ex)
ex - The exception to "re"-throw.
public StorageException(String prefix,
Exception ex)
ex - The exception to "re"-throw.| Method Detail |
public int getTag()
public String getTagString()
public static String getStackTrace(Exception ex)
public static String getStackTrace()
public static void main(String[] argv)
|
Project Harland | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||