Package com.jgcomptech.tools.authz
Class AuthorizationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.jgcomptech.tools.authz.AuthorizationException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
UnauthenticatedException
,UnauthorizedException
public class AuthorizationException extends java.lang.RuntimeException
Exception thrown if there is a problem during authorization (access control check).- Since:
- 1.5.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizationException()
Creates a new AuthorizationException.AuthorizationException(java.lang.String message)
Constructs a new AuthorizationException.AuthorizationException(java.lang.String message, java.lang.Throwable cause)
Constructs a new AuthorizationException.AuthorizationException(java.lang.Throwable cause)
Constructs a new AuthorizationException.
-
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
-
AuthorizationException
public AuthorizationException()
Creates a new AuthorizationException.
-
AuthorizationException
public AuthorizationException(java.lang.String message)
Constructs a new AuthorizationException.- Parameters:
message
- the reason for the exception
-
AuthorizationException
public AuthorizationException(java.lang.Throwable cause)
Constructs a new AuthorizationException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown
-
AuthorizationException
public AuthorizationException(java.lang.String message, java.lang.Throwable cause)
Constructs a new AuthorizationException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown
-
-