Exception: Asimov::MissingRequiredParameterError
- Inherits:
-
RequestError
- Object
- StandardError
- Error
- RequestError
- Asimov::MissingRequiredParameterError
- Defined in:
- lib/asimov/error.rb
Overview
Error raised when a required parameter is not included in the request.
Instance Method Summary collapse
-
#initialize(parameter_name) ⇒ MissingRequiredParameterError
constructor
A new instance of MissingRequiredParameterError.
-
#message ⇒ Object
Returns the error message based on the missing parameter name.
Constructor Details
#initialize(parameter_name) ⇒ MissingRequiredParameterError
Returns a new instance of MissingRequiredParameterError.
168 169 170 171 |
# File 'lib/asimov/error.rb', line 168 def initialize(parameter_name) super() @parameter_name = parameter_name end |
Instance Method Details
#message ⇒ Object
Returns the error message based on the missing parameter name.
176 177 178 |
# File 'lib/asimov/error.rb', line 176 def "The parameter #{@parameter_name} is required." end |