Exception: Telegrammer::Errors::InvalidParamTypeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/telegrammer.rb

Overview

Error returned when a param type is invalid

Instance Method Summary collapse

Constructor Details

#initialize(parameter, current_type, allowed_types) ⇒ InvalidParamTypeError

Returns a new instance of InvalidParamTypeError.



51
52
53
# 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