Exception: SwissMatch::LoadError
- Inherits:
-
StandardError
- Object
- StandardError
- SwissMatch::LoadError
- Defined in:
- lib/swissmatch/loaderror.rb
Overview
Used to indicate an error while loading the swissmatch data.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Data associated with the error.
Instance Method Summary collapse
-
#initialize(message, data) ⇒ LoadError
constructor
A new instance of LoadError.
Constructor Details
#initialize(message, data) ⇒ LoadError
Returns a new instance of LoadError.
21 22 23 24 |
# File 'lib/swissmatch/loaderror.rb', line 21 def initialize(, data) super() @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Data associated with the error
15 16 17 |
# File 'lib/swissmatch/loaderror.rb', line 15 def data @data end |