Exception: MultiJson::LoadError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LoadError.


10
11
12
13
14
# File 'lib/multi_json.rb', line 10

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


9
10
11
# File 'lib/multi_json.rb', line 9

def data
  @data
end