Package org.localify.common.exceptions
Class UnauthorizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.localify.common.exceptions.AbstractLocalifyException
org.localify.common.exceptions.UnauthorizedException
- All Implemented Interfaces:
Serializable
Exception thrown when a user is not authorized to access a resource.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new UnauthorizedException with a default message.UnauthorizedException(String message) Constructs a new UnauthorizedException with the specified message.UnauthorizedException(String str, Throwable cause) Constructs a new UnauthorizedException with the specified message and cause.UnauthorizedException(Throwable cause) Constructs a new UnauthorizedException 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
-
UnauthorizedException
public UnauthorizedException()Constructs a new UnauthorizedException with a default message. -
UnauthorizedException
Constructs a new UnauthorizedException with the specified message.- Parameters:
message- The detail message.
-
UnauthorizedException
Constructs a new UnauthorizedException with the specified cause.- Parameters:
cause- The cause.
-
UnauthorizedException
Constructs a new UnauthorizedException with the specified message and cause.- Parameters:
str- The detail message.cause- The cause.
-