Class ExceptionConst


  • public final class ExceptionConst
    extends java.lang.Object
    Exception constants.
    Since:
    6.0 (intended to replace the InstructionConstant interface)
    • 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
    • Constructor Detail

      • ExceptionConst

        public ExceptionConst()
    • 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 type
        extraClasses - additional classes, if any
        Returns:
        the merged array