class Telegrammer::Errors::InvalidParamTypeError

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/telegrammer.rb, line 51
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