Exception: Apill::Errors::InvalidApiRequest
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Apill::Errors::InvalidApiRequest
- Includes:
- HumanError::Error
- Defined in:
- lib/apill/errors/invalid_api_request.rb
Instance Attribute Summary collapse
-
#accept_header ⇒ Object
Returns the value of attribute accept_header.
Instance Method Summary collapse
Instance Attribute Details
#accept_header ⇒ Object
Returns the value of attribute accept_header.
8 9 10 |
# File 'lib/apill/errors/invalid_api_request.rb', line 8 def accept_header @accept_header end |
Instance Method Details
#detail ⇒ Object
18 19 20 21 |
# File 'lib/apill/errors/invalid_api_request.rb', line 18 def detail 'The accept header that you passed in the request cannot be parsed, ' \ 'please refer to the documentation to verify.' end |
#http_status ⇒ Object
10 11 12 |
# File 'lib/apill/errors/invalid_api_request.rb', line 10 def http_status 400 end |
#source ⇒ Object
23 24 25 |
# File 'lib/apill/errors/invalid_api_request.rb', line 23 def source { accept_header: accept_header } end |
#title ⇒ Object
14 15 16 |
# File 'lib/apill/errors/invalid_api_request.rb', line 14 def title 'Invalid API Request' end |