Exception: Dirwatch::OsNotSupportedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dirwatch/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(os, available, msg = nil) ⇒ OsNotSupportedError

Returns a new instance of OsNotSupportedError.



42
43
44
45
46
# File 'lib/dirwatch/errors.rb', line 42

def initialize os, available, msg = nil
  super msg || "The operating system #{os} is not supported. Only #{available.join ', '}"
  @os = os
  @available = available
end

Instance Attribute Details

#availableObject (readonly)

Returns the value of attribute available.



41
42
43
# File 'lib/dirwatch/errors.rb', line 41

def available
  @available
end

#osObject (readonly)

Returns the value of attribute os.



41
42
43
# File 'lib/dirwatch/errors.rb', line 41

def os
  @os
end