Exception: Expressir::Express::Error::VisitorReferenceResolutionError

Inherits:
VisitorError show all
Defined in:
lib/expressir/express/error.rb

Overview

Error raised when reference resolution fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, reference) ⇒ VisitorReferenceResolutionError

Initialize a new VisitorReferenceResolutionError

Parameters:

  • source (String)

    Source of the reference

  • reference (String)

    The reference that failed to resolve



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

#referenceObject (readonly)

Returns the value of attribute reference.



71
72
73
# File 'lib/expressir/express/error.rb', line 71

def reference
  @reference
end

#sourceObject (readonly)

Returns the value of attribute source.



71
72
73
# File 'lib/expressir/express/error.rb', line 71

def source
  @source
end