Exception: Gorynich::UriNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/gorynich.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, message = nil) ⇒ UriNotFound

Returns a new instance of UriNotFound.



27
28
29
30
31
# File 'lib/gorynich.rb', line 27

def initialize(uri, message = nil)
  @uri = uri

  super(message || I18n.t('gorynich.uri_not_found', uri: @tenant, default: "URI #{@uri} not found"))
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



25
26
27
# File 'lib/gorynich.rb', line 25

def uri
  @uri
end