Exception: MacOSVersionError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ MacOSVersionError

Returns a new instance of MacOSVersionError.



617
618
619
620
# File 'brew/Library/Homebrew/exceptions.rb', line 617

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.



615
616
617
# File 'brew/Library/Homebrew/exceptions.rb', line 615

def version
  @version
end