Exception: Cask::CaskQuarantinePropagationError Private
- Inherits:
-
CaskQuarantineError
- Object
- RuntimeError
- CaskError
- CaskQuarantineError
- Cask::CaskQuarantinePropagationError
- 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.
Error while propagating quarantine information to subdirectories.
Instance Attribute Summary
Attributes inherited from CaskQuarantineError
Instance Method Summary collapse
-
#to_s ⇒ String
private
Methods inherited from CaskQuarantineError
Constructor Details
This class inherits a constructor from Cask::CaskQuarantineError
Instance Method Details
#to_s ⇒ String
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.
216 217 218 219 220 221 222 223 224 225 226 |
# File 'cask/exceptions.rb', line 216 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 |