Exception: JSI::Error::ResolutionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jsi.rb

Overview

A reference or pointer cannot be resolved

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, *a, uri: nil) ⇒ ResolutionError

Returns a new instance of ResolutionError.

Parameters:

  • msg (String, Array) (defaults to: nil)
  • uri (URI, nil) (defaults to: nil)


35
36
37
38
# File 'lib/jsi.rb', line 35

def initialize(msg = nil, *a, uri: nil)
  super([*msg].compact.join("\n"), *a)
  @uri = JSI::Util.uri(uri, nnil: false)
end

Instance Attribute Details

#uriURI?

Returns:

  • (URI, nil)


41
42
43
# File 'lib/jsi.rb', line 41

def uri
  @uri
end