Exception: Modern::Errors::NotFoundError
- Defined in:
- lib/modern/errors/web_errors.rb
Instance Method Summary collapse
-
#initialize(msg = "Not found") ⇒ NotFoundError
constructor
A new instance of NotFoundError.
- #status ⇒ Object
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
#status ⇒ Object
48 49 50 |
# File 'lib/modern/errors/web_errors.rb', line 48 def status 404 end |