Exception: Fontist::Errors::UnsupportedFontError

Inherits:
FontError show all
Defined in:
lib/fontist/errors.rb

Instance Attribute Summary

Attributes inherited from FontError

#font, #style

Instance Method Summary collapse

Methods inherited from FontError

#name

Constructor Details

#initialize(font) ⇒ UnsupportedFontError

Returns a new instance of UnsupportedFontError.



114
115
116
117
118
119
120
121
122
# File 'lib/fontist/errors.rb', line 114

def initialize(font)
  msg = <<~MSG.chomp
    Font '#{font}' not found locally nor available in the Fontist formula repository.
    Perhaps it is available at the latest Fontist formula repository.
    You can update the formula repository using the command `fontist update` and try again.
  MSG

  super(msg, font)
end