Exception: LUSI::API::Core::Lookup::LookupError

Inherits:
APIError
  • Object
show all
Defined in:
lib/lusi_api/core/lookup.rb

Overview

The root of the lookup exception hierarchy

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, key: nil) ⇒ void

Initialises a new LookupError instance

Parameters:

  • key (any) (defaults to: nil)

    the key which triggered the lookup error



23
24
25
26
# File 'lib/lusi_api/core/lookup.rb', line 23

def initialize(*args, key: nil)
  super(*args)
  @key = key
end

Instance Attribute Details

#keyany

Returns the key which triggered the lookup error.

Returns:

  • (any)

    the key which triggered the lookup error



18
19
20
# File 'lib/lusi_api/core/lookup.rb', line 18

def key
  @key
end