Exception: Cask::AbstractCaskErrorWithToken Private
- 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.
Abstract cask error containing a cask token.
Direct Known Subclasses
CaskAlreadyCreatedError, CaskAlreadyInstalledError, CaskConflictError, CaskCyclicDependencyError, CaskInvalidError, CaskNotInstalledError, CaskSha256Error, CaskUnavailableError, CaskX11DependencyError
Instance Attribute Summary collapse
- #reason ⇒ Object readonly private
- #token ⇒ Object 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. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AbstractCaskErrorWithToken.
34 35 36 37 38 39 |
# File 'Library/Homebrew/cask/exceptions.rb', line 34 def initialize(token, reason = nil) super() @token = token @reason = reason.to_s end |
Instance Attribute Details
#reason ⇒ Object (readonly)
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.
32 33 34 |
# File 'Library/Homebrew/cask/exceptions.rb', line 32 def reason @reason end |
#token ⇒ Object (readonly)
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.
32 33 34 |
# File 'Library/Homebrew/cask/exceptions.rb', line 32 def token @token end |