Keel 2.1RC2

org.keel.services.authorization
Class AuthorizationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.keel.core.exception.NestedException
              extended byorg.keel.services.authorization.AuthorizationException
All Implemented Interfaces:
java.io.Serializable

public class AuthorizationException
extends NestedException

Most AuthorizationException will be created using one of the custom constructors. Basically, there are three arguments, each of which is optional, that always appear in the same order:
1: the string message for the exception being created 2: the nested exception (or nested throwable, actually) 3: the exception "key" - for internationalization
Any of these can be left out or passed as null, as required in the situation.
Borrowed from PersistentException coded by Mike Nash

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.keel.core.exception.NestedException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
AuthorizationException()
          Default constructor
AuthorizationException(java.lang.String s)
          Constructor with a single message, no key
AuthorizationException(java.lang.String s, java.lang.String newErrorKey)
          String message and error key
AuthorizationException(java.lang.String message, java.lang.Throwable newNested)
          Constructor with a message and a nested exception
AuthorizationException(java.lang.String message, java.lang.Throwable newNested, java.lang.String newErrorKey)
          Constructor with a single message and a nested exception with error key
AuthorizationException(java.lang.Throwable newNested)
          Constructor with no message and a nested exception
AuthorizationException(java.lang.Throwable newNested, java.lang.String newErrorKey)
          Constructor with no message and a nested exception, but with an error key
 
Methods inherited from class org.keel.core.exception.NestedException
addToMessage, addToStack, getErrorKey, getMessage, getNestedExceptionType, getStackTraceAsString, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorizationException

public AuthorizationException()
Default constructor


AuthorizationException

public AuthorizationException(java.lang.String s)
Constructor with a single message, no key

Parameters:
s - exception message

AuthorizationException

public AuthorizationException(java.lang.String s,
                              java.lang.String newErrorKey)
String message and error key


AuthorizationException

public AuthorizationException(java.lang.String message,
                              java.lang.Throwable newNested)
Constructor with a message and a nested exception

Parameters:
newNested - The nested item

AuthorizationException

public AuthorizationException(java.lang.String message,
                              java.lang.Throwable newNested,
                              java.lang.String newErrorKey)
Constructor with a single message and a nested exception with error key

Parameters:
newNested - The nested item

AuthorizationException

public AuthorizationException(java.lang.Throwable newNested)
Constructor with no message and a nested exception

Parameters:
newNested - The nested exception

AuthorizationException

public AuthorizationException(java.lang.Throwable newNested,
                              java.lang.String newErrorKey)
Constructor with no message and a nested exception, but with an error key

Parameters:
newNested - The nested exception

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.