Exception: Cask::MultipleCaskErrors

Inherits:
CaskError
  • Object
show all
Defined in:
brew/Library/Homebrew/cask/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ MultipleCaskErrors

Returns a new instance of MultipleCaskErrors



7
8
9
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 7

def initialize(errors)
  @errors = errors
end

Instance Method Details

#to_sObject



11
12
13
14
15
16
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 11

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