Exception: Modern::Errors::NotFoundError

Inherits:
WebError
  • Object
show all
Defined in:
lib/modern/errors/web_errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Not found") ⇒ NotFoundError

Returns a new instance of NotFoundError.



44
45
46
# File 'lib/modern/errors/web_errors.rb', line 44

def initialize(msg = "Not found")
  super(msg)
end

Instance Method Details

#statusObject



48
49
50
# File 'lib/modern/errors/web_errors.rb', line 48

def status
  404
end