class Shippo::Exceptions::APIServerError
The APIServerError
happens when the server returns a parseable JSON response, but when such response indicates a failed operation due to either validation or other business, data or logic issues.
The error adds the HTTP response message member, which would typically be “400 Bad Request”
Public Class Methods
new(message = nil, request = nil, response = nil, http_response_message = nil)
click to toggle source
Calls superclass method
Shippo::Exceptions::APIError::new
# File lib/shippo/exceptions/api_server_error.rb, line 15 def initialize(message = nil, request = nil, response = nil, http_response_message = nil) super(message, request, response) self.http_response_message = http_response_message end
Public Instance Methods
to_s_members()
click to toggle source
Calls superclass method
Shippo::Exceptions::APIError#to_s_members
# File lib/shippo/exceptions/api_server_error.rb, line 20 def to_s_members %i(http_response_message) + super end