org.activemath.webapp.base.external
Class ExternalAuthenticationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.activemath.webapp.base.external.ExternalAuthenticationException
All Implemented Interfaces:
Serializable

public class ExternalAuthenticationException
extends Exception

Indicates external authentication error. Contains error code so cause of failure can be reported nicely to the user.

See Also:
Serialized Form

Field Summary
static int ACCESS_FORBIDDEN
           
static int CONNECTION_ERROR
           
static int SYSTEM_ERROR
           
static int TICKET_INVALID
           
 
Constructor Summary
ExternalAuthenticationException(String errorMsg)
           
ExternalAuthenticationException(String errorMsg, int errorCode)
           
ExternalAuthenticationException(Throwable e)
           
 
Method Summary
 int getErrorCode()
           
 String getErrorCodeString()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SYSTEM_ERROR

public static final int SYSTEM_ERROR
See Also:
Constant Field Values

CONNECTION_ERROR

public static final int CONNECTION_ERROR
See Also:
Constant Field Values

ACCESS_FORBIDDEN

public static final int ACCESS_FORBIDDEN
See Also:
Constant Field Values

TICKET_INVALID

public static final int TICKET_INVALID
See Also:
Constant Field Values
Constructor Detail

ExternalAuthenticationException

public ExternalAuthenticationException(String errorMsg)

ExternalAuthenticationException

public ExternalAuthenticationException(String errorMsg,
                                       int errorCode)

ExternalAuthenticationException

public ExternalAuthenticationException(Throwable e)
Method Detail

getErrorCode

public int getErrorCode()

getErrorCodeString

public String getErrorCodeString()

toString

public String toString()
Overrides:
toString in class Throwable