class MultiJson::AdapterError - multi_json-1.10.1 Documentation

# class MultiJson::AdapterError

### Attributes

cause[R]

### Public Class Methods

build(original_exception) click to toggle source

    # File lib/multi_json/adapter_error.rb, line 5
    def self.build(original_exception)
      message = "Did not recognize your adapter specification (#{original_exception.message})."
      new(message).tap do |exception|
        exception.instance_eval do
          @cause = original_exception
          set_backtrace original_exception.backtrace
        end
      end
    end