All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.multi_json-1.11.2.lib.multi_json.adapter_error.rb Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
module MultiJson
  class AdapterError < ArgumentError
    attr_reader :cause

    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
  end
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy