Exception: Lich::Common::ScriptExecutionGuard::Interrupted

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ Interrupted

Build an interruption without retaining a rejected command payload.

Parameters:

  • reason (Symbol) —

    cancellation identifier supplied by the guard



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