Exception: Sqreen::WAFError
- Defined in:
- lib/sqreen/waf_error.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#rule_name ⇒ Object
readonly
Returns the value of attribute rule_name.
Instance Method Summary collapse
-
#initialize(rule_name, error, data = nil, args = nil) ⇒ WAFError
constructor
A new instance of WAFError.
Methods inherited from Exception
Constructor Details
#initialize(rule_name, error, data = nil, args = nil) ⇒ WAFError
Returns a new instance of WAFError.
12 13 14 15 16 17 18 |
# File 'lib/sqreen/waf_error.rb', line 12 def initialize(rule_name, error, data = nil, args = nil) super(error.to_s) @rule_name = rule_name @error = error @data = data @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
10 11 12 |
# File 'lib/sqreen/waf_error.rb', line 10 def args @args end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/sqreen/waf_error.rb', line 10 def data @data end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
10 11 12 |
# File 'lib/sqreen/waf_error.rb', line 10 def error @error end |
#rule_name ⇒ Object (readonly)
Returns the value of attribute rule_name.
10 11 12 |
# File 'lib/sqreen/waf_error.rb', line 10 def rule_name @rule_name end |