org.silverpeas.token.exception
Class TokenException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.silverpeas.token.exception.TokenException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TokenValidationException

public class TokenException
extends Exception

The exception for all normal errors occuring with the Token API and for which the client requires to perform a dedicated action.

Author:
Yohann Chastagnier
See Also:
Serialized Form

Constructor Summary
TokenException()
          Creates a new instance of TokenException without detail message.
TokenException(String msg)
          Constructs an instance of TokenException with the specified detail message.
TokenException(String message, Throwable cause)
          Constructs an instance of TokenException with the specified detail message and with the specified cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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()
Creates a new instance of TokenException without detail message.


TokenException

public TokenException(String msg)
Constructs an instance of TokenException with the specified detail message.

Parameters:
msg - the detail message.

TokenException

public TokenException(String message,
                      Throwable cause)
Constructs an instance of TokenException with the specified detail message and with the specified cause.

Parameters:
message - the detail message.
cause - the cause of this exception.


Copyright © 2016 Silverpeas. All Rights Reserved.