|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
TExceptionHandler essentially maintains a list of what exceptions to ignore and what exceptions to propagate throughout the virtual machine (halting the TVM).
| Field Summary | |
static TExceptionHandler |
PROMISCUOUS_EXCEPTION_HANDLER
An implementation of TExceptionHandler which ignores all exceptions. |
static TExceptionHandler |
PRUDISH_EXCEPTION_HANDLER
An implementation of TExceptionHandler which throws all exceptions. |
| Method Summary | |
boolean |
getWillThrow(int index)
Gets wheter or not the handler should throw a raised exception of the specified type. |
boolean |
getWillThrow(TExceptionType type)
Gets wheter or not the handler should throw a raised exception of the specified type. |
void |
raise(TExceptionType type)
Throws a TException with the specified type iff the specified exception was not set to be ignored. |
| Field Detail |
public static final TExceptionHandler PROMISCUOUS_EXCEPTION_HANDLER
public static final TExceptionHandler PRUDISH_EXCEPTION_HANDLER
| Method Detail |
public void raise(TExceptionType type)
throws TException
type - The type of exceptional condition that was raised in the Virtual Machine.
TExceptionpublic boolean getWillThrow(int index)
index - The index of type (in the TExceptionType.TYPES array) in question. An invalid
value will result in an ArrayIndexOutOfBoundsException.
TExceptionType.TYPESpublic boolean getWillThrow(TExceptionType type)
TExceptionType.TYPES
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||