Class: Coradoc::Reference::MissingReferenceError
- Defined in:
- lib/coradoc/reference.rb
Overview
Raised when no catalog knew the requested Address and the
missing: policy is :error.
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
Instance Method Summary collapse
-
#initialize(message = nil, address: nil) ⇒ MissingReferenceError
constructor
A new instance of MissingReferenceError.
Constructor Details
#initialize(message = nil, address: nil) ⇒ MissingReferenceError
Returns a new instance of MissingReferenceError.
28 29 30 31 |
# File 'lib/coradoc/reference.rb', line 28 def initialize( = nil, address: nil) @address = address super( || "Reference not found: #{address}") end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
26 27 28 |
# File 'lib/coradoc/reference.rb', line 26 def address @address end |