Exception: Cask::CaskX11DependencyError Private

Inherits:
AbstractCaskErrorWithToken show all
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 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_sObject

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.


112
113
114
115
116
117
118
119
120
# File 'Library/Homebrew/cask/exceptions.rb', line 112

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

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