|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TExceptionHandler
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 |
---|
static final TExceptionHandler PROMISCUOUS_EXCEPTION_HANDLER
static final TExceptionHandler PRUDISH_EXCEPTION_HANDLER
Method Detail |
---|
void raise(TExceptionType type) throws TException
type
- The type of exceptional condition that was raised in the Virtual Machine.
TException
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.TYPES
boolean getWillThrow(TExceptionType type)
index
- The type in question. A null value will result in a NullPointerException.
TExceptionType.TYPES
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |