Exception: Cask::CaskTokenMismatchError

Inherits:
CaskInvalidError show all
Defined in:
brew/Library/Homebrew/cask/exceptions.rb

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

Returns a new instance of CaskTokenMismatchError



114
115
116
# File 'brew/Library/Homebrew/cask/exceptions.rb', line 114

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