Exception: Cask::CaskQuarantineReleaseError 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 removing quarantine information.

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.


276
277
278
279
280
281
282
283
284
285
286
# File 'Library/Homebrew/cask/exceptions.rb', line 276

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