Exception: Modern::Errors::BadRequestError
- Defined in:
- lib/modern/errors/web_errors.rb
Instance Method Summary collapse
-
#initialize(msg = "Bad request") ⇒ BadRequestError
constructor
A new instance of BadRequestError.
- #status ⇒ Object
Constructor Details
#initialize(msg = "Bad request") ⇒ BadRequestError
Returns a new instance of BadRequestError.
14 15 16 |
# File 'lib/modern/errors/web_errors.rb', line 14 def initialize(msg = "Bad request") super(msg) end |
Instance Method Details
#status ⇒ Object
18 19 20 |
# File 'lib/modern/errors/web_errors.rb', line 18 def status 400 end |