Exception: Hbc::CaskTokenMismatchError

Inherits:
CaskInvalidError show all
Defined in:
Library/Homebrew/cask/lib/hbc/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



118
119
120
# File 'Library/Homebrew/cask/lib/hbc/exceptions.rb', line 118

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