Exception: Fabychy::Errors::InvalidParamValueError

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

Overview

Error returned when a param type is invalid

Instance Method Summary collapse

Constructor Details

#initialize(parameter, current_value, allowed_values) ⇒ InvalidParamValueError

Returns a new instance of InvalidParamValueError.



61
62
63
# File 'lib/fabychy.rb', line 61

def initialize(parameter, current_value, allowed_values)
  super("Invalid parameter value: `#{parameter}`: `#{current_value}`. Allowed values: #{allowed_values.each { |type| type.class.to_s }.join(',')}.")
end