Exception: Drillbit::Errors::InvalidSubdomain

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#http_hostObject

Returns the value of attribute http_host.



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

def http_host
  @http_host
end

Instance Method Details

#detailObject



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

def detail
  'The subdomain you attempted to access is not valid.  Please try again.'
end

#http_statusObject



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

def http_status
  404
end

#sourceObject



24
25
26
# File 'lib/drillbit/errors/invalid_subdomain.rb', line 24

def source
  { http_host: http_host }
end

#titleObject



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

def title
  'Invalid Subdomain'
end