Exception: Vectory::InvalidFormatError

Inherits:
Error
  • Object
show all
Defined in:
lib/vectory/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(format, supported_formats) ⇒ InvalidFormatError

Returns a new instance of InvalidFormatError.



21
22
23
# File 'lib/vectory/errors.rb', line 21

def initialize(format, supported_formats)
  super("Invalid format '#{format}'. Supported formats: #{supported_formats.join(', ')}")
end