# Uses of Class
serp.bytecode.ExceptionHandler

Packages that use ExceptionHandler
Package
Description
serp.bytecode
Bytecode Manipuation
serp.bytecode.visitor
Bytecode Visitor

## Uses of ExceptionHandler in serp.bytecode

Methods in serp.bytecode that return ExceptionHandler
Modifier and Type
Method
Description
`ExceptionHandler`
Code.`addExceptionHandler()`
Add an exception handler to this code block.
`ExceptionHandler`
Code.`addExceptionHandler(ExceptionHandler handler)`
Import the given exception handler from another code block.
`ExceptionHandler`
Code.`addExceptionHandler(Instruction tryStart, Instruction tryEnd, Instruction handlerStart, Class catchType)`
Add an exception handler to this code block.
`ExceptionHandler`
Code.`addExceptionHandler(Instruction tryStart, Instruction tryEnd, Instruction handlerStart, String catchType)`
Add an exception handler to this code block.
`ExceptionHandler`
Code.`addExceptionHandler(Instruction tryStart, Instruction tryEnd, Instruction handlerStart, BCClass catchType)`
Add an exception handler to this code block.
`ExceptionHandler`
Code.`getExceptionHandler(Class catchType)`
Return the exception handler that catches the given exception type; if multiple handlers catch the given type, which is returned is undefined.
`ExceptionHandler`
Code.`getExceptionHandler(String catchType)`
Return the exception handler that catches the given exception type; if multiple handlers catch the given type, which is returned is undefined.
`ExceptionHandler`
Code.`getExceptionHandler(BCClass catchType)`
Return the exception handler that catches the given exception type; if multiple handlers catch the given type, which is returned is undefined.
`ExceptionHandler[]`
Code.`getExceptionHandlers()`
Return the exception handlers active in this code block, or an empty array if none.
`ExceptionHandler[]`
Code.`getExceptionHandlers(Class catchType)`
Return all exception handlers that catch the given exception type, or an empty array if none.
`ExceptionHandler[]`
Code.`getExceptionHandlers(String catchType)`
Return all exception handlers that catch the given exception type, or an empty array if none.
`ExceptionHandler[]`
Code.`getExceptionHandlers(BCClass catchType)`
Return all exception handlers that catch the given exception type, or an empty array if none.
Methods in serp.bytecode with parameters of type ExceptionHandler
Modifier and Type
Method
Description
`ExceptionHandler`
Code.`addExceptionHandler(ExceptionHandler handler)`
Import the given exception handler from another code block.
`boolean`
Code.`removeExceptionHandler(ExceptionHandler handler)`
Remove an exception handler from this code block.
`void`
Code.`setExceptionHandlers(ExceptionHandler[] handlers)`
Set the exception handlers for this code block.

## Uses of ExceptionHandler in serp.bytecode.visitor

Methods in serp.bytecode.visitor with parameters of type ExceptionHandler
Modifier and Type
Method
Description
`void`
BCVisitor.`enterExceptionHandler(ExceptionHandler obj)`
`void`
PrettyPrintVisitor.`enterExceptionHandler(ExceptionHandler obj)`
`void`
BCVisitor.`exitExceptionHandler(ExceptionHandler obj)`
`void`
PrettyPrintVisitor.`exitExceptionHandler(ExceptionHandler obj)`