Class DenyException

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

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

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version for this exception type.
      See Also:
  • Constructor Details

    • DenyException

      public DenyException(String message)
      Creates a new exception describing the deny-list rule that rejected the command.
      Parameters:
      message - description of the deny-list rule that matched