Class: Coradoc::Reference::MissingReferenceError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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(message = nil, address: nil)
  @address = address
  super(message || "Reference not found: #{address}")
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



26
27
28
# File 'lib/coradoc/reference.rb', line 26

def address
  @address
end