Exception: WIN32OLERuntimeError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/win32ole/win32ole_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(cause = nil) ⇒ WIN32OLERuntimeError

Returns a new instance of WIN32OLERuntimeError.



2
3
4
# File 'lib/win32ole/win32ole_error.rb', line 2

def initialize(cause=nil)
  @cause = cause
end

Instance Method Details

#backtraceObject



6
7
8
# File 'lib/win32ole/win32ole_error.rb', line 6

def backtrace
  @cause ? @cause.backtrace : super
end

#to_sObject



10
11
12
# File 'lib/win32ole/win32ole_error.rb', line 10

def to_s
  @cause ? @cause.to_s : super
end