Exception: MacOSVersionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
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.


646
647
648
649
# File 'Library/Homebrew/exceptions.rb', line 646

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


644
645
646
# File 'Library/Homebrew/exceptions.rb', line 644

def version
  @version
end