Exception: Ovh::Http2sms::MissingParameterError
- Defined in:
- lib/ovh/http2sms/errors.rb
Overview
Raised when a required parameter is missing (API status 201)
Instance Attribute Summary collapse
-
#parameter ⇒ String?
readonly
Name of the missing parameter.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Missing required parameter", parameter: nil, **options) ⇒ MissingParameterError
constructor
A new instance of MissingParameterError.
Constructor Details
#initialize(message = "Missing required parameter", parameter: nil, **options) ⇒ MissingParameterError
Returns a new instance of MissingParameterError.
44 45 46 47 |
# File 'lib/ovh/http2sms/errors.rb', line 44 def initialize( = "Missing required parameter", parameter: nil, **) @parameter = parameter super(, **.merge(status_code: 201)) end |
Instance Attribute Details
#parameter ⇒ String? (readonly)
Returns Name of the missing parameter.
42 43 44 |
# File 'lib/ovh/http2sms/errors.rb', line 42 def parameter @parameter end |