Package org.apache.bcel
Class ExceptionConst
java.lang.Object
org.apache.bcel.ExceptionConst
Exception constants.
- Since:
- 6.0 (intended to replace the InstructionConstant interface)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enum corresponding to the various Exception Class arrays, used bycreateExceptions(EXCS, Class...)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Class<AbstractMethodError>
static final Class<ArithmeticException>
static final Class<ArrayIndexOutOfBoundsException>
static final Class<ClassCastException>
static final Class<ClassCircularityError>
Linking Exceptionsstatic final Class<ClassFormatError>
static final Class<ExceptionInInitializerError>
static final Class<IllegalAccessError>
static final Class<IllegalMonitorStateException>
static final Class<IncompatibleClassChangeError>
static final Class<InstantiationError>
static final Class<LinkageError>
Super class of any linking exception (aka Linkage Error)static final Class<NegativeArraySizeException>
static final Class<NoClassDefFoundError>
static final Class<NoSuchFieldError>
static final Class<NoSuchMethodError>
static final Class<NullPointerException>
Run-Time Exceptionsstatic final Class<RuntimeException>
Super class of any run-time exceptionThe mother of all exceptionsstatic final Class<UnsatisfiedLinkError>
static final Class<VerifyError>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>[]
createExceptions
(ExceptionConst.EXCS type, Class<?>... extraClasses) Creates a copy of the specified Exception Class array combined with any additional Exception classes.
-
Field Details
-
THROWABLE
The mother of all exceptions -
RUNTIME_EXCEPTION
Super class of any run-time exception -
LINKING_EXCEPTION
Super class of any linking exception (aka Linkage Error) -
CLASS_CIRCULARITY_ERROR
Linking Exceptions -
CLASS_FORMAT_ERROR
-
EXCEPTION_IN_INITIALIZER_ERROR
-
INCOMPATIBLE_CLASS_CHANGE_ERROR
-
ABSTRACT_METHOD_ERROR
-
ILLEGAL_ACCESS_ERROR
-
INSTANTIATION_ERROR
-
NO_SUCH_FIELD_ERROR
-
NO_SUCH_METHOD_ERROR
-
NO_CLASS_DEF_FOUND_ERROR
-
UNSATISFIED_LINK_ERROR
-
VERIFY_ERROR
-
NULL_POINTER_EXCEPTION
Run-Time Exceptions -
ARRAY_INDEX_OUT_OF_BOUNDS_EXCEPTION
-
ARITHMETIC_EXCEPTION
-
NEGATIVE_ARRAY_SIZE_EXCEPTION
-
CLASS_CAST_EXCEPTION
-
ILLEGAL_MONITOR_STATE
-
-
Constructor Details
-
ExceptionConst
public ExceptionConst()
-
-
Method Details
-
createExceptions
Creates a copy of the specified Exception Class array combined with any additional Exception classes.- Parameters:
type
- the basic array typeextraClasses
- additional classes, if any- Returns:
- the merged array
-