Exception: Rubino::Memory::Store::ThreatDetectedError

Inherits:
Error
  • Object
show all
Defined in:
lib/rubino/memory/store.rb

Overview

Raised when ThreatScanner flags content destined for the store. Carries the threat label so callers can branch on it without parsing the human-facing message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(threat) ⇒ ThreatDetectedError

Returns a new instance of ThreatDetectedError.



27
28
29
30
# File 'lib/rubino/memory/store.rb', line 27

def initialize(threat)
  @threat = threat
  super("memory threat detected: #{threat}")
end

Instance Attribute Details

#threatObject (readonly)

Returns the value of attribute threat.



25
26
27
# File 'lib/rubino/memory/store.rb', line 25

def threat
  @threat
end