Exception: Iglu::Registries::ResolverError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/iglu-client/registries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lookups, schema_key) ⇒ ResolverError

Returns a new instance of ResolverError.



120
121
122
123
124
125
# File 'lib/iglu-client/registries.rb', line 120

def initialize(lookups, schema_key)
  @lookups = lookups
  @schema_key = schema_key
  message = "Schema [#{schema_key.as_uri}] was not found with in [#{lookups.length}] registries with following attempts: [#{lookups.map { |lookup| lookup.to_s }.join('; ')}]"
  super(message)
end

Instance Attribute Details

#lookupsObject (readonly)

Returns the value of attribute lookups.



118
119
120
# File 'lib/iglu-client/registries.rb', line 118

def lookups
  @lookups
end

#schema_keyObject (readonly)

Returns the value of attribute schema_key.



118
119
120
# File 'lib/iglu-client/registries.rb', line 118

def schema_key
  @schema_key
end