Exception: Cask::MultipleCaskErrors Private

Inherits:
CaskError
  • Object
show all
Extended by:
T::Sig
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.



16
17
18
19
20
# File 'cask/exceptions.rb', line 16

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:



23
24
25
26
27
28
# File 'cask/exceptions.rb', line 23

def to_s
  <<~EOS
    Problems with multiple casks:
    #{@errors.map(&:to_s).join("\n")}
  EOS
end