Class AccessControlException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.deltava.util.ControllerException
org.deltava.commands.CommandException
org.deltava.security.command.AccessControlException
- All Implemented Interfaces:
Serializable
An exception thrown by an access controller. By default, stack traces of access
control exceptions are not logged.
- Since:
- 1.0
- Version:
- 6.0
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCretes a new access control exception with a particular message.AccessControlException(String msg, boolean doWarn) Creates a new access control exception with a particular message, and optionally sets the warning flag. -
Method Summary
Methods inherited from class ControllerException
getForwardURL, getLogStackDump, getStatusCode, isSuppressed, isWarning, setForwardURL, setLogStackDump, setStatusCode, setSuppressed, setWarningModifier and TypeMethodDescriptionReturns the URL that the Controller servlet should forward the request to.booleanReturns whether the handling class should log this Exception's stack trace.intReturns the HTTP status code to set on the error page.booleanReturns whether this exception should not be logged.booleanReturns whether this exception to be logged as a warning, not an error.voidsetForwardURL(String url) Updates the URL that the Controller servlet should forward the request to.voidsetLogStackDump(boolean doLog) Updates whether the handling class should log this Exception's stack trace.voidsetStatusCode(int code) Sets the HTTP status code to set on the error page.voidsetSuppressed(boolean isSuppress) Sets this exception to not be logged.voidsetWarning(boolean isWarn) Sets this exception to be logged as a warning, not an error.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AccessControlException
AccessControlException(String msg) Cretes a new access control exception with a particular message.- Parameters:
msg- the message
-
AccessControlException
AccessControlException(String msg, boolean doWarn) Creates a new access control exception with a particular message, and optionally sets the warning flag.- Parameters:
msg- the messagedoWarn- TRUE if the exception should be logged as a warning, otherwise FALSE
-