Class InvalidClassFileException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidClassFileException
    extends java.lang.Exception
    This exception is thrown when we detect that the incoming class file data was not a valid class file.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidClassFileException​(int offset, java.lang.String s)
      The incoming class file is invalid.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getOffset()  
      • 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

      • InvalidClassFileException

        public InvalidClassFileException​(int offset,
                                         java.lang.String s)
        The incoming class file is invalid.
        Parameters:
        offset - the offset within the data where the invalidity was detected
        s - the reason the data is invalid
    • Method Detail

      • getOffset

        public int getOffset()
        Returns:
        the offset within the data where the problem was detected