Exception: Rubino::Memory::Store::ThreatDetectedError
- 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
-
#threat ⇒ Object
readonly
Returns the value of attribute threat.
Instance Method Summary collapse
-
#initialize(threat) ⇒ ThreatDetectedError
constructor
A new instance of ThreatDetectedError.
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
#threat ⇒ Object (readonly)
Returns the value of attribute threat.
25 26 27 |
# File 'lib/rubino/memory/store.rb', line 25 def threat @threat end |