Class TokenException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    PKCS11Exception

    public class TokenException
    extends java.lang.Exception
    The base class for all exceptions in this package. It is able to wrap another exception from a lower layer.
    Author:
    Karl Scheibelhofer (SIC), Lijun Liao (xipki)
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenException​(java.lang.Exception encapsulatedException)
      Constructor taking another exception to wrap.
      TokenException​(java.lang.String message)
      Constructor taking an exception message.
      TokenException​(java.lang.String message, java.lang.Exception encapsulatedException)
      Constructor taking a message for this exception and another exception to wrap.
    • Method Summary

      • 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

      • TokenException

        public TokenException​(java.lang.String message)
        Constructor taking an exception message.
        Parameters:
        message - The message giving details about the exception to ease debugging.
      • TokenException

        public TokenException​(java.lang.Exception encapsulatedException)
        Constructor taking another exception to wrap.
        Parameters:
        encapsulatedException - The other exception the wrap into this.
      • TokenException

        public TokenException​(java.lang.String message,
                              java.lang.Exception encapsulatedException)
        Constructor taking a message for this exception and another exception to wrap.
        Parameters:
        message - The message giving details about the exception to ease debugging.
        encapsulatedException - The other exception the wrap into this.