Exception: Cask::AbstractCaskErrorWithToken Private
- 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.
Abstract cask error containing a cask token.
Direct Known Subclasses
CaskAlreadyCreatedError, CaskCannotBeInstalledError, CaskConflictError, CaskCyclicDependencyError, CaskInvalidError, CaskNotInstalledError, CaskUnavailableError
Instance Attribute Summary collapse
- #reason ⇒ String readonly private
- #token ⇒ String readonly private
Instance Method Summary collapse
-
#initialize(token, reason = nil) ⇒ AbstractCaskErrorWithToken
constructor
private
A new instance of AbstractCaskErrorWithToken.
Constructor Details
#initialize(token, reason = nil) ⇒ AbstractCaskErrorWithToken
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 a new instance of AbstractCaskErrorWithToken.
33 34 35 36 37 38 |
# File 'cask/exceptions.rb', line 33 def initialize(token, reason = nil) super() @token = token.to_s @reason = reason.to_s end |
Instance Attribute Details
#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.
31 32 33 |
# File 'cask/exceptions.rb', line 31 def reason @reason end |
#token ⇒ 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.
28 29 30 |
# File 'cask/exceptions.rb', line 28 def token @token end |