| Class | Rools::RuleError |
| In: |
lib/rools/errors.rb
|
| Parent: | StandardError |
| inner_error | [R] | |
| rule | [R] |
Pass the Rools::Rule that caused the error, and an optional inner_error
# File lib/rools/errors.rb, line 7
7: def initialize(rule, inner_error = nil)
8: @rule = rule
9: @inner_error = inner_error
10: end
returns the name of the associated Rools::Rule, and the message of the inner_error
# File lib/rools/errors.rb, line 13
13: def to_s
14: "#{@rule.name}\n#{@inner_error.to_s}"
15: end