Exception: Ragweed::Wrap32::WinX

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ragweed/wrap32/winx.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sym = nil) ⇒ WinX

Returns a new instance of WinX.



9
10
11
12
13
14
# File 'lib/ragweed/wrap32/winx.rb', line 9

def initialize(sym=nil)
  @call = sym 
  @code = Ragweed::Wrap32::get_last_error()
  @msg = "#{(@call ? @call.to_s + ": " : "")}(#{@code}) #{ Ragweed::Wrap32::format_message(@code) }"
  super @msg
end

Instance Attribute Details

#callObject (readonly)

Returns the value of attribute call.



8
9
10
# File 'lib/ragweed/wrap32/winx.rb', line 8

def call
  @call
end

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/ragweed/wrap32/winx.rb', line 6

def code
  @code
end

#msgObject (readonly)

Returns the value of attribute msg.



7
8
9
# File 'lib/ragweed/wrap32/winx.rb', line 7

def msg
  @msg
end