Exception: Rack::Spec::RequestValidation::LinkNotFound

Inherits:
Error
  • Object
show all
Defined in:
lib/rack/spec/request_validation.rb

Overview

Error class for case when no link defined for given request

Instance Method Summary collapse

Methods inherited from Error

#to_rack_response

Constructor Details

#initializeLinkNotFound

Returns a new instance of LinkNotFound.



129
130
131
# File 'lib/rack/spec/request_validation.rb', line 129

def initialize
  super("Not found")
end

Instance Method Details

#idObject



137
138
139
# File 'lib/rack/spec/request_validation.rb', line 137

def id
  "link_not_found"
end

#statusObject



133
134
135
# File 'lib/rack/spec/request_validation.rb', line 133

def status
  404
end