Class: Apill::Errors::InvalidApiRequestError
- Inherits:
-
HumanError::Errors::RequestError
- Object
- HumanError::Errors::RequestError
- Apill::Errors::InvalidApiRequestError
- Defined in:
- lib/apill/errors/invalid_api_request_error.rb
Instance Attribute Summary collapse
-
#accept_header ⇒ Object
Returns the value of attribute accept_header.
Instance Method Summary collapse
- #developer_details ⇒ Object
- #developer_message ⇒ Object
- #friendly_message ⇒ Object
- #http_status ⇒ Object
Instance Attribute Details
#accept_header ⇒ Object
Returns the value of attribute accept_header.
6 7 8 |
# File 'lib/apill/errors/invalid_api_request_error.rb', line 6 def accept_header @accept_header end |
Instance Method Details
#developer_details ⇒ Object
16 17 18 |
# File 'lib/apill/errors/invalid_api_request_error.rb', line 16 def developer_details { accept_header: accept_header } end |
#developer_message ⇒ Object
12 13 14 |
# File 'lib/apill/errors/invalid_api_request_error.rb', line 12 def 'The accept header that you passed in the request cannot be parsed, please refer to the documentation to verify.' end |
#friendly_message ⇒ Object
20 21 22 |
# File 'lib/apill/errors/invalid_api_request_error.rb', line 20 def "Sorry! We couldn't understand what you were trying to ask us to do." end |
#http_status ⇒ Object
8 9 10 |
# File 'lib/apill/errors/invalid_api_request_error.rb', line 8 def http_status 400 end |