Exception: Cask::CaskQuarantinePropagationError Private

Inherits:
CaskQuarantineError 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.

Error while propagating quarantine information to subdirectories.

Instance Attribute Summary

Attributes inherited from CaskQuarantineError

#path, #reason

Instance Method Summary collapse

Methods inherited from CaskQuarantineError

#initialize

Constructor Details

This class inherits a constructor from Cask::CaskQuarantineError

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.


259
260
261
262
263
264
265
266
267
268
269
# File 'Library/Homebrew/cask/exceptions.rb', line 259

def to_s
  s = +"Failed to quarantine one or more files within #{path}."

  unless reason.empty?
    s << " Here's the reason:\n"
    s << Formatter.error(reason)
    s << "\n" unless reason.end_with?("\n")
  end

  s.freeze
end