Class ClassTooLargeException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ClassTooLargeException
    extends java.lang.IndexOutOfBoundsException
    Exception thrown when the constant pool of a class produced by a ClassWriter is too large.
    See Also:
    Serialized Form
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getClassName()
      Returns the internal name of the class.
      int getConstantPoolCount()
      Returns the number of constant pool items of the class.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ClassTooLargeException

        public ClassTooLargeException​(java.lang.String className,
                                      int constantPoolCount)
        Constructs a new ClassTooLargeException.
        Parameters:
        className - the internal name of the class.
        constantPoolCount - the number of constant pool items of the class.
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Returns the internal name of the class.
        Returns:
        the internal name of the class.
      • getConstantPoolCount

        public int getConstantPoolCount()
        Returns the number of constant pool items of the class.
        Returns:
        the number of constant pool items of the class.