Class InvalidContentException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidContentException
    extends java.io.IOException
    Indicates that signed content is invalid according to one of the signers.
    Since:
    3.4
    See Also:
    Serialized Form
    Restriction:
    This class is not intended to be subclassed by clients.
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidContentException​(java.lang.String message, java.lang.Throwable cause)
      Constructs an InvalidContentException with the specified detail message and cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getCause()
      Returns the cause of this exception or null if no cause was specified when this exception was created.
      java.lang.Throwable initCause​(java.lang.Throwable t)
      The cause of this exception can only be set when constructed.
      • Methods inherited from class java.lang.Throwable

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

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

      • InvalidContentException

        public InvalidContentException​(java.lang.String message,
                                       java.lang.Throwable cause)
        Constructs an InvalidContentException with the specified detail message and cause.
        Parameters:
        message - the exception message
        cause - the cause, may be null
    • Method Detail

      • getCause

        public java.lang.Throwable getCause()
        Returns the cause of this exception or null if no cause was specified when this exception was created.
        Overrides:
        getCause in class java.lang.Throwable
        Returns:
        The cause of this exception or null if no cause was created.
      • initCause

        public java.lang.Throwable initCause​(java.lang.Throwable t)
        The cause of this exception can only be set when constructed.
        Overrides:
        initCause in class java.lang.Throwable
        Parameters:
        t - Cause of the exception.
        Returns:
        This object.
        Throws:
        java.lang.IllegalStateException - This method will always throw an IllegalStateException since the cause of this exception can only be set when constructed.