|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sage.orion.sdata.servlet.ForbiddenException
public class ForbiddenException
The ForbiddenException
exception is to be thrown when the
request has been provided valid authentication information but the caller is
not permitted access to that resource for the operation in question.
This will normally result in the servlet returning an HTTP SC_FORBIDDEN (403) status code.
Do not confuse SC_FORBIDDEN (associated with ForbiddenException
)
with SC_UNAUTHORIZED (associated with UnauthorizedException
).
SC_UNAUTHORIZED represents 'I do not know if you are allowed to access this
resource; I do not know who you are', whereas SC_FORBIDDEN represents 'Yes, I
know who you are but you are not permitted access to that resource'.
Constructor Summary | |
---|---|
ForbiddenException()
Constructs a new ForbiddenException with null as its
detail message and with no underlying cause specified. |
|
ForbiddenException(java.lang.String message)
Constructs a new ForbiddenException with the specified detail
message. |
|
ForbiddenException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new ForbiddenException with the specified detail
message and cause. |
|
ForbiddenException(java.lang.Throwable cause)
Constructs a new ForbiddenException with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
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 |
---|
public ForbiddenException()
ForbiddenException
with null
as its
detail message and with no underlying cause specified.
public ForbiddenException(java.lang.String message)
ForbiddenException
with the specified detail
message.
message
- the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage()
method.public ForbiddenException(java.lang.Throwable cause)
ForbiddenException
with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause
).
cause
- The underlying Throwable
that caused this exception.public ForbiddenException(java.lang.String message, java.lang.Throwable cause)
ForbiddenException
with the specified detail
message and cause.
message
- the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage()
method.cause
- The underlying Throwable
that caused this exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |