Exception: Apill::Errors::InvalidSubdomain

Inherits:
RuntimeError
  • Object
show all
Includes:
HumanError::Error
Defined in:
lib/apill/errors/invalid_subdomain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#http_hostObject

Returns the value of attribute http_host.



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

def http_host
  @http_host
end

Instance Method Details

#detailObject



18
19
20
21
# File 'lib/apill/errors/invalid_subdomain.rb', line 18

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

#http_statusObject



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

def http_status
  404
end

#sourceObject



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

def source
  { http_host: http_host }
end

#titleObject



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

def title
  'Invalid Subdomain'
end