Exception: Grape::Exceptions::RequestError

Inherits:
Base
  • Object
show all
Defined in:
lib/grape/exceptions/request_error.rb

Constant Summary

Constants inherited from Base

Base::MESSAGE_STEPS

Instance Attribute Summary

Attributes inherited from Base

#headers, #status

Instance Method Summary collapse

Methods inherited from Base

#[]

Constructor Details

#initialize(status: 400) ⇒ RequestError

Returns a new instance of RequestError.



6
7
8
# File 'lib/grape/exceptions/request_error.rb', line 6

def initialize(status: 400)
  super(message: $ERROR_INFO&.message, status:)
end