Exception: MacOSVersionError

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



742
743
744
745
# File 'exceptions.rb', line 742

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.



740
741
742
# File 'exceptions.rb', line 740

def version
  @version
end