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