class Fabychy::Errors::InvalidParamTypeError
Error returned when a param type is invalid
Error returned when a param type is invalid
Public Class Methods
new(parameter, current_type, allowed_types)
click to toggle source
Calls superclass method
# File lib/fabychy.rb, line 54 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