Exception: MultiJson::DecodeError

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) ⇒ DecodeError

Returns a new instance of DecodeError.



4
5
6
7
8
# File 'lib/multi_json.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.rb', line 3

def data
  @data
end