Exception: Sqreen::WAFError

Inherits:
Exception
  • Object
show all
Defined in:
lib/sqreen/waf_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Exception

#log_message

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

#argsObject (readonly)

Returns the value of attribute args.



10
11
12
# File 'lib/sqreen/waf_error.rb', line 10

def args
  @args
end

#dataObject (readonly)

Returns the value of attribute data.



10
11
12
# File 'lib/sqreen/waf_error.rb', line 10

def data
  @data
end

#errorObject (readonly)

Returns the value of attribute error.



10
11
12
# File 'lib/sqreen/waf_error.rb', line 10

def error
  @error
end

#rule_nameObject (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