Exception: Inforouter::Errors::ApiError

Inherits:
InforouterError show all
Defined in:
lib/inforouter/errors/api_error.rb

Overview

This error is raised when the infoRouter service returns an error from an API.

Constant Summary

Constants inherited from InforouterError

InforouterError::BASE_KEY

Instance Method Summary collapse

Methods inherited from InforouterError

#compose_message

Constructor Details

#initialize(message, raw) ⇒ ApiError

Returns a new instance of ApiError.

Parameters:

  • message (String)

    Error message.

  • raw (String)

    Raw data from the SOAP response.



9
10
11
# File 'lib/inforouter/errors/api_error.rb', line 9

def initialize(message, raw)
  super(compose_message('api_error', message: message, raw: raw))
end