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.



246
247
248
249
# File 'lib/fontist/errors.rb', line 246

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