Package org.localify.common.exceptions
Class ForbiddenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.localify.common.exceptions.AbstractLocalifyException
org.localify.common.exceptions.ForbiddenException
- All Implemented Interfaces:
Serializable
Exception thrown when a user is not authorized to access a resource.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ForbiddenException with a default message.ForbiddenException(String message) Constructs a new ForbiddenException with the specified message.ForbiddenException(String str, Throwable cause) Constructs a new ForbiddenException with the specified message and cause.ForbiddenException(Throwable cause) Constructs a new ForbiddenException with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ForbiddenException
public ForbiddenException()Constructs a new ForbiddenException with a default message. -
ForbiddenException
Constructs a new ForbiddenException with the specified message.- Parameters:
message- The detail message.
-
ForbiddenException
Constructs a new ForbiddenException with the specified cause.- Parameters:
cause- The cause.
-
ForbiddenException
Constructs a new ForbiddenException with the specified message and cause.- Parameters:
str- The detail message.cause- The cause.
-