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