Class PermissionDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.osid.OsidException
org.osid.UserException
org.osid.PermissionDeniedException
- All Implemented Interfaces:
Serializable
An authorization failure occurred. This error should be returned when
the user cannot perform an operation. Generally, this is determined by
using an Authorization service contained within a service. This error
implies that if a user was granted authorization, the operation could
succeed. Permission problems in the a system or database, for example, may
imply a configuration or operational problem not resulting from a user
authorization and should result in a different error condition.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aPermissionDeniedExceptionwith the specified detail message.PermissionDeniedException(String msg, Throwable t) Constructs aPermissionDeniedExceptionwith the specified detail message and cause.Constructs aPermissionDeniedExceptionwith the specified cause and a detail message ofcause.toString()which typically contains the class and detail message ofcause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PermissionDeniedException
-
PermissionDeniedException
Constructs aPermissionDeniedExceptionwith the specified detail message and cause. The error message stringmsgcan later be retrieved by the getMessage() method ofThrowable.- Parameters:
msg- the error messaget- the cause of the exception
-
PermissionDeniedException
Constructs aPermissionDeniedExceptionwith the specified cause and a detail message ofcause.toString()which typically contains the class and detail message ofcause.- Parameters:
t- the cause of the exception
-