Exception: Fontist::Errors::FormatNotAvailableError

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

Overview

Format not available for font

Instance Method Summary collapse

Constructor Details

#initialize(font_name, requested_format, available_formats) ⇒ FormatNotAvailableError

Returns a new instance of FormatNotAvailableError.



210
211
212
213
# File 'lib/fontist/errors.rb', line 210

def initialize(font_name, requested_format, available_formats)
  super("Format '#{requested_format}' not available for font " \
        "'#{font_name}'. Available formats: #{available_formats.join(', ')}")
end