Exception: Aikido::Zen::UnderAttackError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aikido/zen/errors.rb

Direct Known Subclasses

SQLInjectionError, SSRFDetectedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attack) ⇒ UnderAttackError

Returns a new instance of UnderAttackError.



62
63
64
65
# File 'lib/aikido/zen/errors.rb', line 62

def initialize(attack)
  super(attack.log_message)
  @attack = attack
end

Instance Attribute Details

#attackObject (readonly)

Returns the value of attribute attack.



60
61
62
# File 'lib/aikido/zen/errors.rb', line 60

def attack
  @attack
end