Exception: Drillbit::Errors::InvalidApiRequest

Inherits:
RuntimeError
  • Object
show all
Includes:
Erratum::Error
Defined in:
lib/drillbit/errors/invalid_api_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accept_headerObject

Returns the value of attribute accept_header.



10
11
12
# File 'lib/drillbit/errors/invalid_api_request.rb', line 10

def accept_header
  @accept_header
end

Instance Method Details

#detailObject



20
21
22
23
# File 'lib/drillbit/errors/invalid_api_request.rb', line 20

def detail
  'The accept header that you passed in the request cannot be parsed, ' \
  'please refer to the documentation to verify.'
end

#http_statusObject



12
13
14
# File 'lib/drillbit/errors/invalid_api_request.rb', line 12

def http_status
  400
end

#sourceObject



25
26
27
# File 'lib/drillbit/errors/invalid_api_request.rb', line 25

def source
  { accept_header: accept_header }
end

#titleObject



16
17
18
# File 'lib/drillbit/errors/invalid_api_request.rb', line 16

def title
  'Invalid API Request'
end