Exception: HelloSign::Error::Error
- Inherits:
-
StandardError
- Object
- StandardError
- HelloSign::Error::Error
- Defined in:
- lib/hello_sign/error.rb
Overview
Custom error class for rescuing from all HelloSign errors.
Direct Known Subclasses
BadGateway, BadRequest, Conflict, ExceededRate, FileNotFound, Forbidden, Gone, InternalServerError, MethodNotAllowed, MissingAttributes, MissingCredentials, NotFound, NotSupportedType, PaidApiPlanRequired, Parsing, ServiceUnavailable, Unauthorized, UnknownError
Instance Attribute Summary collapse
-
#request_uri ⇒ Object
Returns the value of attribute request_uri.
-
#response_body ⇒ Object
Returns the value of attribute response_body.
-
#response_status ⇒ Object
Returns the value of attribute response_status.
Instance Method Summary collapse
-
#initialize(response_status, response_body = nil, request_uri) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response_status, response_body = nil, request_uri) ⇒ Error
Returns a new instance of Error.
31 32 33 34 35 36 |
# File 'lib/hello_sign/error.rb', line 31 def initialize(response_status, response_body = nil, request_uri) @request_uri = request_uri @response_body = response_body @response_status = response_status super() end |
Instance Attribute Details
#request_uri ⇒ Object
Returns the value of attribute request_uri.
29 30 31 |
# File 'lib/hello_sign/error.rb', line 29 def request_uri @request_uri end |
#response_body ⇒ Object
Returns the value of attribute response_body.
29 30 31 |
# File 'lib/hello_sign/error.rb', line 29 def response_body @response_body end |
#response_status ⇒ Object
Returns the value of attribute response_status.
29 30 31 |
# File 'lib/hello_sign/error.rb', line 29 def response_status @response_status end |