Exception: Expressir::Express::Error::VisitorReferenceResolutionError
- Inherits:
-
VisitorError
- Object
- StandardError
- ExpressError
- VisitorError
- Expressir::Express::Error::VisitorReferenceResolutionError
- Defined in:
- lib/expressir/express/error.rb
Overview
Error raised when reference resolution fails
Instance Attribute Summary collapse
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, reference) ⇒ VisitorReferenceResolutionError
constructor
Initialize a new VisitorReferenceResolutionError.
Constructor Details
#initialize(source, reference) ⇒ VisitorReferenceResolutionError
Initialize a new VisitorReferenceResolutionError
76 77 78 79 80 |
# File 'lib/expressir/express/error.rb', line 76 def initialize(source, reference) @source = source @reference = reference super("Failed to resolve reference '#{reference}' from '#{source}'") end |
Instance Attribute Details
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
71 72 73 |
# File 'lib/expressir/express/error.rb', line 71 def reference @reference end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
71 72 73 |
# File 'lib/expressir/express/error.rb', line 71 def source @source end |