Exception: Rng::ExternalRefResolver::ExternalRefResolutionError

Inherits:
Rng::Error
  • Object
show all
Defined in:
lib/rng/external_ref_resolver.rb

Overview

Error raised when external reference resolution fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, href: nil, cause: nil) ⇒ ExternalRefResolutionError

Returns a new instance of ExternalRefResolutionError.



18
19
20
21
22
# File 'lib/rng/external_ref_resolver.rb', line 18

def initialize(message, href: nil, cause: nil)
  super(message)
  @href = href
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



16
17
18
# File 'lib/rng/external_ref_resolver.rb', line 16

def cause
  @cause
end

#hrefObject (readonly)

Returns the value of attribute href.



16
17
18
# File 'lib/rng/external_ref_resolver.rb', line 16

def href
  @href
end