magoffin.matt.ma2
Class AuthorizationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by magoffin.matt.ma2.AuthorizationException
All Implemented Interfaces:
java.io.Serializable

public class AuthorizationException
extends java.lang.RuntimeException

Exception thrown when authorization fails.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)
See Also:
Serialized Form

Nested Class Summary
static class AuthorizationException.Reason
          Authorization exception reason.
 
Constructor Summary
AuthorizationException(java.lang.String login, AuthorizationException.Reason reason)
          Construct authorization exception.
 
Method Summary
 java.lang.String getLogin()
          Get the attempted login.
 AuthorizationException.Reason getReason()
          Get the authorization exception reason.
 
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

AuthorizationException

public AuthorizationException(java.lang.String login,
                              AuthorizationException.Reason reason)
Construct authorization exception.

Parameters:
login - the attempted login
reason - the reason for the exception
Method Detail

getLogin

public java.lang.String getLogin()
Get the attempted login.

Returns:
login value

getReason

public AuthorizationException.Reason getReason()
Get the authorization exception reason.

Returns:
reason