Package org.machanism.machai.gw.tools
Class DenyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.machanism.machai.gw.tools.DenyException
- All Implemented Interfaces:
Serializable
Signals that a command has failed a deny-list security check and must not be executed.
This exception is used by CommandSecurityChecker when the supplied command line matches a deny-list
rule, such as a keyword or regular expression. Host-side command execution tools can catch it and refuse to run
the command.
- Author:
- Viktor Tovstyi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerialization version for this exception type. -
Constructor Summary
ConstructorsConstructorDescriptionDenyException(String message) Creates a new exception describing the deny-list rule that rejected the command. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version for this exception type.- See Also:
-
-
Constructor Details
-
DenyException
Creates a new exception describing the deny-list rule that rejected the command.- Parameters:
message- description of the deny-list rule that matched
-