Exception: Rsxml::Sexp::ComparisonError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Rsxml::Sexp::ComparisonError
- Defined in:
- lib/rsxml/sexp.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(msg, path) ⇒ ComparisonError
constructor
A new instance of ComparisonError.
Constructor Details
#initialize(msg, path) ⇒ ComparisonError
Returns a new instance of ComparisonError.
55 56 57 58 |
# File 'lib/rsxml/sexp.rb', line 55 def initialize(msg, path) super("[#{path}]: #{msg}") @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
54 55 56 |
# File 'lib/rsxml/sexp.rb', line 54 def path @path end |