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