Exception: Modern::Errors::BadRequestError

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

Instance Method Summary collapse

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

#statusObject



18
19
20
# File 'lib/modern/errors/web_errors.rb', line 18

def status
  400
end