Exception: Drillbit::Errors::InvalidApiRequest
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Drillbit::Errors::InvalidApiRequest
- Includes:
- Erratum::Error
- Defined in:
- lib/drillbit/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.
9 10 11 |
# File 'lib/drillbit/errors/invalid_api_request.rb', line 9 def accept_header @accept_header end |
Instance Method Details
#detail ⇒ Object
19 20 21 22 |
# File 'lib/drillbit/errors/invalid_api_request.rb', line 19 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
11 12 13 |
# File 'lib/drillbit/errors/invalid_api_request.rb', line 11 def http_status 400 end |
#source ⇒ Object
24 25 26 |
# File 'lib/drillbit/errors/invalid_api_request.rb', line 24 def source { accept_header: accept_header } end |
#title ⇒ Object
15 16 17 |
# File 'lib/drillbit/errors/invalid_api_request.rb', line 15 def title 'Invalid API Request' end |