Exception: Cask::MultipleCaskErrors Private

Inherits:
CaskError
  • Object
show all
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

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_sObject

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