Exception: Cask::CaskTokenMismatchError Private

Inherits:
CaskInvalidError 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 when a cask token does not match the file name.

Instance Attribute Summary

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Methods inherited from CaskInvalidError

#to_s

Constructor Details

#initialize(token, header_token) ⇒ CaskTokenMismatchError

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 CaskTokenMismatchError.



226
227
228
# File 'cask/exceptions.rb', line 226

def initialize(token, header_token)
  super(token, "Token '#{header_token}' in header line does not match the file name.")
end