class MultiJson::ParseError - multi_json-1.10.1 Documentation

# class MultiJson::ParseError

### Attributes

cause[R]
data[R]

### Public Class Methods

build(original_exception, data) click to toggle source

    # File lib/multi_json/parse_error.rb, line 5
    def self.build(original_exception, data)
      new(original_exception.message).tap do |exception|
        exception.instance_eval do
          @cause = original_exception
          set_backtrace original_exception.backtrace
          @data = data
        end
      end
    end