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.



779
780
781
782
# File 'exceptions.rb', line 779

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.



777
778
779
# File 'exceptions.rb', line 777

def version
  @version
end