Exception: Rubychy::Errors::InvalidParamTypeError
- Inherits:
-
StandardError
- Object
- StandardError
- Rubychy::Errors::InvalidParamTypeError
- Defined in:
- lib/rubychy.rb
Overview
Error returned when a param type is invalid
Instance Method Summary collapse
-
#initialize(parameter, current_type, allowed_types) ⇒ InvalidParamTypeError
constructor
A new instance of InvalidParamTypeError.
Constructor Details
#initialize(parameter, current_type, allowed_types) ⇒ InvalidParamTypeError
Returns a new instance of InvalidParamTypeError.
41 42 43 |
# File 'lib/rubychy.rb', line 41 def initialize(parameter, current_type, allowed_types) super("Invalid parameter type: `#{parameter}`: `#{current_type}`. Allowed types: #{allowed_types.each { |type| type.class.to_s }.join(',')}.") end |