Exception: Fontist::Errors::CollectionIndexError

Inherits:
GeneralError
  • Object
show all
Defined in:
lib/fontist/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(index, max_index) ⇒ CollectionIndexError

Returns a new instance of CollectionIndexError.



273
274
275
276
# File 'lib/fontist/errors.rb', line 273

def initialize(index, max_index)
  super("Collection index #{index} out of range. " \
        "Valid range: 0-#{max_index}")
end