Exception: SwissMatch::LoadError

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

Overview

Used to indicate an error while loading the swissmatch data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, data) ⇒ LoadError

Returns a new instance of LoadError.

Parameters:

  • message (String)

    Same as Exception#initialize, the message of the exception

  • data (Object)

    Arbitrary data


21
22
23
24
# File 'lib/swissmatch/loaderror.rb', line 21

def initialize(message, data)
  super(message)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Data associated with the error


15
16
17
# File 'lib/swissmatch/loaderror.rb', line 15

def data
  @data
end