Exception: WinWindow::SystemError

Inherits:
Error
  • Object
show all
Defined in:
lib/winwindow.rb

Overview

exception which is raised when an underlying method of the operating system encounters an error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, stuff = {}) ⇒ SystemError

Returns a new instance of SystemError.



30
31
32
33
34
35
# File 'lib/winwindow.rb', line 30

def initialize(message, stuff={})
  super(message)
  @function=stuff[:function]
  @code=stuff[:code]
  @system_message=stuff[:system_message]
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



28
29
30
# File 'lib/winwindow.rb', line 28

def code
  @code
end

#functionObject (readonly)

Returns the value of attribute function.



27
28
29
# File 'lib/winwindow.rb', line 27

def function
  @function
end

#system_messageObject (readonly)

Returns the value of attribute system_message.



29
30
31
# File 'lib/winwindow.rb', line 29

def system_message
  @system_message
end