Exception: Fontist::Errors::FormatNotAvailableError
- Inherits:
-
GeneralError
- Object
- StandardError
- GeneralError
- Fontist::Errors::FormatNotAvailableError
- Defined in:
- lib/fontist/errors.rb
Overview
Format not available for font
Instance Method Summary collapse
-
#initialize(font_name, requested_format, available_formats) ⇒ FormatNotAvailableError
constructor
A new instance of FormatNotAvailableError.
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 |