Exception: Apipie::ParamMissing
- Inherits:
-
DefinedParamError
- Object
- StandardError
- Error
- ParamError
- DefinedParamError
- Apipie::ParamMissing
- Defined in:
- lib/apipie/errors.rb
Instance Attribute Summary
Attributes inherited from DefinedParamError
Instance Method Summary collapse
Methods inherited from DefinedParamError
Constructor Details
This class inherits a constructor from Apipie::DefinedParamError
Instance Method Details
#to_s ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/apipie/errors.rb', line 28 def to_s unless @param.[:missing_message].nil? if @param.[:missing_message].kind_of?(Proc) @param.[:missing_message].call else @param.[:missing_message].to_s end else "Missing parameter #{@param.name}" end end |