Class ForbiddenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.djrapitops.plan.delivery.web.resolver.exception.ForbiddenException
- All Implemented Interfaces:
Serializable
Throw this exception when someone is not allowed to view a resource.
Plan will construct forbidden request error automatically.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionForbiddenException(boolean json) Construct new ForbiddenException.ForbiddenException(String message, boolean json) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ForbiddenException
-
ForbiddenException
public ForbiddenException(boolean json) Construct new ForbiddenException.- Parameters:
json- If the error body should be json instead of html.
-
-
Method Details
-
isJson
public boolean isJson()
-