Exception: Fontist::Errors::CollectionIndexError
- Inherits:
-
GeneralError
- Object
- StandardError
- GeneralError
- Fontist::Errors::CollectionIndexError
- Defined in:
- lib/fontist/errors.rb
Instance Method Summary collapse
-
#initialize(index, max_index) ⇒ CollectionIndexError
constructor
A new instance of CollectionIndexError.
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 |