Package org.machanism.machai.ai.tools
Class DenyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.machanism.machai.ai.tools.DenyException
- All Implemented Interfaces:
Serializable
Exception thrown when a command fails a deny-list security check.
This exception is used by CommandSecurityChecker to signal that the provided command line matches a
deny-list rule (keyword or regular expression). Host-side command execution tools can catch this exception and
refuse to run the command.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDenyException(String message) Creates a new exception with a human-readable reason. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DenyException
Creates a new exception with a human-readable reason.- Parameters:
message- description of the deny-list rule that matched
-