Class ExceptionHandler

java.lang.Object
org.apache.bcel.verifier.structurals.ExceptionHandler

public class ExceptionHandler extends Object
This class represents an exception handler; that is, an ObjectType representing a subclass of Throwable and the instruction the handler starts off (represented by an InstructionContext).
  • Field Details

    • EMPTY_ARRAY

      static final ExceptionHandler[] EMPTY_ARRAY
    • catchType

      private final ObjectType catchType
      The type of the exception to catch. NULL means ANY.
    • handlerPc

      private final InstructionHandle handlerPc
      The InstructionHandle where the handling begins.
  • Constructor Details

  • Method Details

    • getExceptionType

      public ObjectType getExceptionType()
      Returns the type of the exception that's handled. 'null' means 'ANY'.
    • getHandlerStart

      public InstructionHandle getHandlerStart()
      Returns the InstructionHandle where the handler starts off.