Exception: RequestParamsValidation::MissingParameterError
- Inherits:
-
RequestParamError
- Object
- StandardError
- GeneralError
- RequestParamError
- RequestParamsValidation::MissingParameterError
- Defined in:
- lib/request_params_validation/exceptions/validator_errors.rb
Instance Attribute Summary collapse
-
#param_key ⇒ Object
readonly
Returns the value of attribute param_key.
-
#param_type ⇒ Object
readonly
Returns the value of attribute param_type.
Instance Method Summary collapse
-
#initialize(options) ⇒ MissingParameterError
constructor
A new instance of MissingParameterError.
- #message ⇒ Object
Constructor Details
#initialize(options) ⇒ MissingParameterError
Returns a new instance of MissingParameterError.
7 8 9 10 11 12 |
# File 'lib/request_params_validation/exceptions/validator_errors.rb', line 7 def initialize() @param_key = [:param_key] @param_type = [:param_type] super() end |
Instance Attribute Details
#param_key ⇒ Object (readonly)
Returns the value of attribute param_key.
5 6 7 |
# File 'lib/request_params_validation/exceptions/validator_errors.rb', line 5 def param_key @param_key end |
#param_type ⇒ Object (readonly)
Returns the value of attribute param_type.
5 6 7 |
# File 'lib/request_params_validation/exceptions/validator_errors.rb', line 5 def param_type @param_type end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/request_params_validation/exceptions/validator_errors.rb', line 14 def "The parameter '#{param_key}' is missing" end |