Exception: Cask::CaskQuarantineReleaseError Private

Inherits:
CaskQuarantineError show all
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

#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_sString

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.

Returns:



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