Exception: Hyperdrive::Errors::MissingRequiredParam

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/hyperdrive/errors/missing_required_param.rb

Instance Attribute Summary

Attributes inherited from HTTPError

#http_status_code, #message

Instance Method Summary collapse

Constructor Details

#initialize(param, http_request_method) ⇒ MissingRequiredParam

Returns a new instance of MissingRequiredParam.



4
5
6
7
# File 'lib/hyperdrive/errors/missing_required_param.rb', line 4

def initialize(param, http_request_method)
  @message = "The #{param} param is required by #{http_request_method} requests."
  @http_status_code = 400
end