Exception: MultiJson::LoadError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/multi_json/load_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = '', backtrace = [], data = '') ⇒ LoadError

Returns a new instance of LoadError.


4
5
6
7
8
# File 'lib/multi_json/load_error.rb', line 4

def initialize(message='', backtrace=[], data='')
  super(message)
  self.set_backtrace(backtrace)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data


3
4
5
# File 'lib/multi_json/load_error.rb', line 3

def data
  @data
end