Exception: Apill::Errors::InvalidApiRequest

Inherits:
RuntimeError
  • Object
show all
Includes:
HumanError::Error
Defined in:
lib/apill/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.



8
9
10
# File 'lib/apill/errors/invalid_api_request.rb', line 8

def accept_header
  @accept_header
end

Instance Method Details

#detailObject



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_statusObject



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

def http_status
  400
end

#sourceObject



23
24
25
# File 'lib/apill/errors/invalid_api_request.rb', line 23

def source
  { accept_header: accept_header }
end

#titleObject



14
15
16
# File 'lib/apill/errors/invalid_api_request.rb', line 14

def title
  'Invalid API Request'
end