Exception: Lich::Common::ScriptExecutionGuard::Interrupted
- Inherits:
-
StandardError
- Object
- StandardError
- Lich::Common::ScriptExecutionGuard::Interrupted
- Defined in:
- documented/common/script_execution_guard.rb
Overview
Exception raised when script execution is interrupted by the guard policy.
Retains only the reason identifier; never carries the rejected command payload, exception message, backtrace, or cause chain to avoid leaking sensitive data.
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason) ⇒ Interrupted
constructor
Build an interruption without retaining a rejected command payload.
Constructor Details
#initialize(reason) ⇒ Interrupted
Build an interruption without retaining a rejected command payload.
20 21 22 23 |
# File 'documented/common/script_execution_guard.rb', line 20 def initialize(reason) @reason = reason super("Script execution interrupted: #{reason}") end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
15 16 17 |
# File 'documented/common/script_execution_guard.rb', line 15 def reason @reason end |