Exception: Fontist::Errors::FontNotFoundError
- Inherits:
-
GeneralError
- Object
- StandardError
- GeneralError
- Fontist::Errors::FontNotFoundError
- Defined in:
- lib/fontist/errors.rb
Instance Attribute Summary collapse
-
#parsing_errors ⇒ Object
readonly
Returns the value of attribute parsing_errors.
Instance Method Summary collapse
- #has_parsing_errors? ⇒ Boolean
-
#initialize(message, parsing_errors: []) ⇒ FontNotFoundError
constructor
A new instance of FontNotFoundError.
Constructor Details
#initialize(message, parsing_errors: []) ⇒ FontNotFoundError
Returns a new instance of FontNotFoundError.
30 31 32 33 |
# File 'lib/fontist/errors.rb', line 30 def initialize(, parsing_errors: []) super() @parsing_errors = Array(parsing_errors) end |
Instance Attribute Details
#parsing_errors ⇒ Object (readonly)
Returns the value of attribute parsing_errors.
28 29 30 |
# File 'lib/fontist/errors.rb', line 28 def parsing_errors @parsing_errors end |
Instance Method Details
#has_parsing_errors? ⇒ Boolean
35 36 37 |
# File 'lib/fontist/errors.rb', line 35 def has_parsing_errors? @parsing_errors&.any? end |