Exception: Fontist::Errors::MissingFontError

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, style = nil) ⇒ MissingFontError

Returns a new instance of MissingFontError.



88
89
90
91
92
93
# File 'lib/fontist/errors.rb', line 88

def initialize(font, style = nil)
  name = prepare_name(font, style)
  msg = "#{name} font is missing, please run `fontist install '#{font}'` to download the font."

  super(msg, font, style)
end