Class Rools::RuleError
In: lib/rools/errors.rb
Parent: StandardError

Methods

new   to_s  

Attributes

inner_error  [R] 
rule  [R] 

Public Class methods

Pass the Rools::Rule that caused the error, and an optional inner_error

[Source]

    # File lib/rools/errors.rb, line 7
 7:       def initialize(rule, inner_error = nil)    
 8:         @rule = rule
 9:         @inner_error = inner_error      
10:       end

Public Instance methods

returns the name of the associated Rools::Rule, and the message of the inner_error

[Source]

    # File lib/rools/errors.rb, line 13
13:       def to_s
14:         "#{@rule.name}\n#{@inner_error.to_s}"
15:       end

[Validate]