Exception: Cask::CaskX11DependencyError Private

Inherits:
AbstractCaskErrorWithToken show all
Extended by:
T::Sig
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 depends on X11.

Instance Attribute Summary

Attributes inherited from AbstractCaskErrorWithToken

#reason, #token

Instance Method Summary collapse

Methods inherited from AbstractCaskErrorWithToken

#initialize

Constructor Details

This class inherits a constructor from Cask::AbstractCaskErrorWithToken

Instance Method Details

#to_sString

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:



163
164
165
166
167
168
169
170
171
# File 'cask/exceptions.rb', line 163

def to_s
  <<~EOS
    Cask '#{token}' requires XQuartz/X11, which can be installed using Homebrew Cask by running:
      #{Formatter.identifier("brew install --cask xquartz")}

    or manually, by downloading the package from:
      #{Formatter.url("https://www.xquartz.org/")}
  EOS
end