Exception: WIN32OLERuntimeError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- WIN32OLERuntimeError
- Defined in:
- lib/win32ole/win32ole_error.rb
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(cause = nil) ⇒ WIN32OLERuntimeError
constructor
A new instance of WIN32OLERuntimeError.
- #to_s ⇒ Object
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
#backtrace ⇒ Object
6 7 8 |
# File 'lib/win32ole/win32ole_error.rb', line 6 def backtrace @cause ? @cause.backtrace : super end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/win32ole/win32ole_error.rb', line 10 def to_s @cause ? @cause.to_s : super end |