Class: Apill::Errors::InvalidSubdomainError

Inherits:
HumanError::Errors::RequestError
  • Object
show all
Defined in:
lib/apill/errors/invalid_subdomain_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#http_hostObject

Returns the value of attribute http_host.



6
7
8
# File 'lib/apill/errors/invalid_subdomain_error.rb', line 6

def http_host
  @http_host
end

Instance Method Details

#developer_detailsObject



17
18
19
# File 'lib/apill/errors/invalid_subdomain_error.rb', line 17

def developer_details
  { http_host: http_host }
end

#developer_messageObject



12
13
14
15
# File 'lib/apill/errors/invalid_subdomain_error.rb', line 12

def developer_message
  'The resource you attempted to access is either not authorized for the ' \
  'authenticated user or does not exist.'
end

#friendly_messageObject



21
22
23
# File 'lib/apill/errors/invalid_subdomain_error.rb', line 21

def friendly_message
  'Sorry! The resource you tried to access does not exist.'
end

#http_statusObject



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

def http_status
  404
end