Exception: TaxCloud::Errors::ApiError

Inherits:
TaxCloudError show all
Defined in:
lib/tax_cloud/errors/api_error.rb

Overview

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

Instance Attribute Summary

Attributes inherited from TaxCloudError

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from TaxCloudError

#compose_message

Constructor Details

#initialize(message, raw) ⇒ ApiError

Parameters

message

Error message.

raw

Raw data from the SOAP response.



10
11
12
13
14
15
# File 'lib/tax_cloud/errors/api_error.rb', line 10

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