Exception: Cask::MultipleCaskErrors Private
- Defined in:
- Library/Homebrew/cask/exceptions.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Cask error containing multiple other errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ MultipleCaskErrors
constructor
private
A new instance of MultipleCaskErrors.
- #to_s ⇒ Object private
Constructor Details
#initialize(errors) ⇒ MultipleCaskErrors
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MultipleCaskErrors.
14 15 16 17 18 |
# File 'Library/Homebrew/cask/exceptions.rb', line 14 def initialize(errors) super() @errors = errors end |
Instance Method Details
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 23 24 25 |
# File 'Library/Homebrew/cask/exceptions.rb', line 20 def to_s <<~EOS Problems with multiple casks: #{@errors.map(&:to_s).join("\n")} EOS end |