Class UnauthorisedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.gustavblass.commons.exceptions.IllegalArgumentException
de.gustavblass.fsu.fmi.roombooking.exceptions.UnauthorisedException
- All Implemented Interfaces:
Serializable
@ResponseStatus(value=UNAUTHORIZED,
reason="The request was rejected because the user lacks the necessary authorisation.")
public class UnauthorisedException
extends de.gustavblass.commons.exceptions.IllegalArgumentException
Indicates that the user does not possess the authorisation required for the intended action.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull ActorAuthorityprivate final @NonNull ActorAuthority -
Constructor Summary
ConstructorsConstructorDescriptionUnauthorisedException(@NonNull ActorAuthority requiredAuthority, @NonNull ActorAuthority actualAuthority) SeeException().UnauthorisedException(String message, @NonNull ActorAuthority requiredAuthority, @NonNull ActorAuthority actualAuthority) SeeException(String).UnauthorisedException(String message, Throwable cause, @NonNull ActorAuthority requiredAuthority, @NonNull ActorAuthority actualAuthority) UnauthorisedException(Throwable cause, @NonNull ActorAuthority requiredAuthority, @NonNull ActorAuthority actualAuthority) SeeException(Throwable). -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
requiredAuthority
-
actualAuthority
-
-
Constructor Details
-
UnauthorisedException
public UnauthorisedException(@NonNull @NonNull ActorAuthority requiredAuthority, @NonNull @NonNull ActorAuthority actualAuthority) SeeException(). -
UnauthorisedException
public UnauthorisedException(String message, @NonNull @NonNull ActorAuthority requiredAuthority, @NonNull @NonNull ActorAuthority actualAuthority) SeeException(String). -
UnauthorisedException
public UnauthorisedException(String message, Throwable cause, @NonNull @NonNull ActorAuthority requiredAuthority, @NonNull @NonNull ActorAuthority actualAuthority) -
UnauthorisedException
public UnauthorisedException(Throwable cause, @NonNull @NonNull ActorAuthority requiredAuthority, @NonNull @NonNull ActorAuthority actualAuthority) SeeException(Throwable).
-