Exception: MacOSVersionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
brew/Library/Homebrew/exceptions.rb

Overview

Raised when a macOS version is unsupported.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ MacOSVersionError

Returns a new instance of MacOSVersionError.



654
655
656
657
# File 'brew/Library/Homebrew/exceptions.rb', line 654

def initialize(version)
  @version = version
  super "unknown or unsupported macOS version: #{version.inspect}"
end

Instance Attribute Details

#versionObject (readonly)

Returns the value of attribute version.



652
653
654
# File 'brew/Library/Homebrew/exceptions.rb', line 652

def version
  @version
end