Package com.jgcomptech.tools.authz
Class UnauthorizedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.jgcomptech.tools.authz.AuthorizationException
-
- com.jgcomptech.tools.authz.UnauthorizedException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnauthorizedException extends AuthorizationException
Thrown to indicate a requested operation or access to a requested resource is not allowed.- Since:
- 1.5.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnauthorizedException()
Creates a new UnauthorizedException.UnauthorizedException(java.lang.String message)
Constructs a new UnauthorizedException.UnauthorizedException(java.lang.String message, java.lang.Throwable cause)
Constructs a new UnauthorizedException.UnauthorizedException(java.lang.Throwable cause)
Constructs a new UnauthorizedException.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertThrown(@NotNull java.lang.Runnable runnable)
Asserts that the specified runnable throws this exception and if not throws an junit assertion failure.
-
-
-
Constructor Detail
-
UnauthorizedException
public UnauthorizedException()
Creates a new UnauthorizedException.
-
UnauthorizedException
public UnauthorizedException(java.lang.String message)
Constructs a new UnauthorizedException.- Parameters:
message
- the reason for the exception
-
UnauthorizedException
public UnauthorizedException(java.lang.Throwable cause)
Constructs a new UnauthorizedException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown
-
UnauthorizedException
public UnauthorizedException(java.lang.String message, java.lang.Throwable cause)
Constructs a new UnauthorizedException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown
-
-