Exception: Cask::MultipleCaskErrors Private

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

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_sString

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:



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