Exception: Cask::CaskSha256Error Private
- Inherits:
-
AbstractCaskErrorWithToken
- Object
- RuntimeError
- CaskError
- AbstractCaskErrorWithToken
- Cask::CaskSha256Error
- 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 with a cask's checksum.
Direct Known Subclasses
CaskNoShasumError, CaskSha256MismatchError, CaskSha256MissingError
Instance Attribute Summary collapse
- #actual ⇒ Object readonly private
- #expected ⇒ Object readonly private
Attributes inherited from AbstractCaskErrorWithToken
Instance Method Summary collapse
-
#initialize(token, expected = nil, actual = nil) ⇒ CaskSha256Error
constructor
private
A new instance of CaskSha256Error.
Constructor Details
#initialize(token, expected = nil, actual = nil) ⇒ CaskSha256Error
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 CaskSha256Error.
174 175 176 177 178 |
# File 'Library/Homebrew/cask/exceptions.rb', line 174 def initialize(token, expected = nil, actual = nil) super(token) @expected = expected @actual = actual end |
Instance Attribute Details
#actual ⇒ 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.
172 173 174 |
# File 'Library/Homebrew/cask/exceptions.rb', line 172 def actual @actual end |
#expected ⇒ 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.
172 173 174 |
# File 'Library/Homebrew/cask/exceptions.rb', line 172 def expected @expected end |