Exception: Cask::CaskQuarantineReleaseError Private
- Inherits:
-
CaskQuarantineError
- Object
- RuntimeError
- CaskError
- CaskQuarantineError
- Cask::CaskQuarantineReleaseError
- 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 removing quarantine information.
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.
249 250 251 252 253 254 255 256 257 258 259 |
# File 'cask/exceptions.rb', line 249 def to_s s = +"Failed to release #{path} from quarantine." unless reason.empty? s << " Here's the reason:\n" s << Formatter.error(reason) s << "\n" unless reason.end_with?("\n") end s.freeze end |