Exception: Inforouter::Errors::UnexpectedSOAPResponse

Inherits:
InforouterError
  • Object
show all
Defined in:
lib/inforouter/errors/unexpected_soap_response_error.rb

Overview

This error is raised when infoRouter returns an unexpected SOAP response.

Constant Summary

Constants inherited from InforouterError

InforouterError::BASE_KEY

Instance Method Summary collapse

Methods inherited from InforouterError

#compose_message

Constructor Details

#initialize(raw, key, chain) ⇒ UnexpectedSOAPResponse

Returns a new instance of UnexpectedSOAPResponse.

Parameters:

  • raw (String)

    Raw data from the SOAP response.

  • key (String)

    Expected key in the SOAP response.

  • chain (String)

    Complete SOAP response chain in which the key could not be found.



9
10
11
12
13
14
15
# File 'lib/inforouter/errors/unexpected_soap_response_error.rb', line 9

def initialize(raw, key, chain)
  super(compose_message('unexpected_soap_response',
                        key: key,
                        raw: raw,
                        chain: chain
  ))
end