Sha256: c23f521427d2089af9b7c04e1829b5987128c628cd9233df7dff77fb1254156d

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

# encoding: utf-8
module Inforouter #:nodoc:
  module Errors #:nodoc:
    # This error is raised when the infoRouter service
    # returns an error from an API.
    class ApiError < InforouterError
      # @param message [String] Error message.
      # @param raw [String] Raw data from the SOAP response.
      def initialize(message, raw)
        super(compose_message('api_error',
                              :message => message,
                              :raw => raw
        ))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inforouter-0.2.0 lib/inforouter/errors/api_error.rb