Exception: Zerobounce::ApiError

Inherits:
Error
  • Object
show all
Defined in:
lib/zerobounce/error.rb

Overview

General API error, the response code was 200 but an error still occurred.

Author:

  • Aaron Frase

Instance Attribute Summary

Attributes inherited from Error

#env

Instance Method Summary collapse

Methods inherited from Error

from_response, #initialize

Constructor Details

This class inherits a constructor from Zerobounce::Error

Instance Method Details

#messageObject

See Also:



80
81
82
# File 'lib/zerobounce/error.rb', line 80

def message
  JSON.parse(@env[:body])['error']
end