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.



781
782
783
784
# File 'exceptions.rb', line 781

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.



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

def version
  @version
end