Exception: Modern::Errors::UnauthorizedError
- Defined in:
- lib/modern/errors/web_errors.rb
Instance Method Summary collapse
-
#initialize(msg = "Unauthorized") ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
- #status ⇒ Object
Constructor Details
#initialize(msg = "Unauthorized") ⇒ UnauthorizedError
Returns a new instance of UnauthorizedError.
24 25 26 |
# File 'lib/modern/errors/web_errors.rb', line 24 def initialize(msg = "Unauthorized") super(msg) end |
Instance Method Details
#status ⇒ Object
28 29 30 |
# File 'lib/modern/errors/web_errors.rb', line 28 def status 401 end |