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.



231
232
233
234
# File 'lib/fontist/errors.rb', line 231

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