Class DenyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.machanism.machai.ai.tools.DenyException
All Implemented Interfaces:
Serializable

public class DenyException extends Exception
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 Details

    • DenyException

      public DenyException(String message)
      Creates a new exception with a human-readable reason.
      Parameters:
      message - description of the deny-list rule that matched