Exception: RightScale::Win32Error
- Includes:
- Windows::Error
- Defined in:
- lib/right_agent/platform/windows.rb
Overview
Throw when a Win32 API fails. Message will contain the last error message
Instance Method Summary collapse
-
#initialize(msg = "") ⇒ Win32Error
constructor
A new instance of Win32Error.
- #message ⇒ Object
Constructor Details
#initialize(msg = "") ⇒ Win32Error
Returns a new instance of Win32Error.
45 46 47 48 |
# File 'lib/right_agent/platform/windows.rb', line 45 def initialize(msg = "") super(msg) @last_error = get_last_error end |
Instance Method Details
#message ⇒ Object
50 51 52 53 54 55 |
# File 'lib/right_agent/platform/windows.rb', line 50 def = super result = "" result << "#{original_message}\n Error Detail: " unless .nil? || .empty? result << "#{@last_error}" end |