Exception: MacOSVersionError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- MacOSVersionError
- Defined in:
- brew/Library/Homebrew/exceptions.rb
Overview
Raised when a macOS version is unsupported.
Instance Attribute Summary collapse
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version) ⇒ MacOSVersionError
constructor
A new instance of MacOSVersionError.
Constructor Details
#initialize(version) ⇒ MacOSVersionError
Returns a new instance of MacOSVersionError.
694 695 696 697 |
# File 'brew/Library/Homebrew/exceptions.rb', line 694 def initialize(version) @version = version super "unknown or unsupported macOS version: #{version.inspect}" end |
Instance Attribute Details
#version ⇒ Object (readonly)
Returns the value of attribute version.
692 693 694 |
# File 'brew/Library/Homebrew/exceptions.rb', line 692 def version @version end |