Exception: Paradeiser::InvalidTypeError

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

Instance Method Summary collapse

Constructor Details

#initialize(type, choices) ⇒ InvalidTypeError

Returns a new instance of InvalidTypeError.



33
34
35
# File 'lib/paradeiser/errors.rb', line 33

def initialize(type, choices)
  super("'#{type}' is not a valid type. Valid are only #{choices}.")
end