Spec-Zone.ru › Homebrew

Exception: Cask::CaskQuarantineError Private

Inherits:
CaskError
  • Object
  • RuntimeError
  • CaskError
  • Cask::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 during quarantining of a file.

Direct Known Subclasses

CaskQuarantinePropagationError, CaskQuarantineReleaseError

Instance Attribute Summary collapse

  • #path ⇒ String, Pathname readonly private
  • #reason ⇒ String readonly private

Instance Method Summary collapse

  • #initialize(path, reason) ⇒ void constructor private

Constructor Details

#initialize(path, reason) ⇒ void

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.

Parameters:

  • path (String, Pathname)
  • reason (String)


205
206
207
208
209
210
# File 'cask/exceptions.rb', line 205

def initialize(path, reason)
  super()

  @path = path
  @reason = reason
end

Instance Attribute Details

#path ⇒ String, Pathname (readonly)

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:

  • (String, Pathname)


199
200
201
# File 'cask/exceptions.rb', line 199

def path
  @path
end

#reason ⇒ String (readonly)

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:

  • (String)


202
203
204
# File 'cask/exceptions.rb', line 202

def reason
  @reason
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/Cask/CaskQuarantineError.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API