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
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/apipie/errors.rb', line 42 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 |