Exception: Openwsman::Exception
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Openwsman::Exception
- Defined in:
- lib/wbem/openwsman.rb
Overview
Capture Fault as Exception
Instance Method Summary collapse
-
#initialize(fault) ⇒ Exception
constructor
A new instance of Exception.
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#to_s ⇒ Object
23 24 25 26 27 |
# File 'lib/wbem/openwsman.rb', line 23 def to_s "Fault code #{@fault.code}, subcode #{@fault.subcode}" + "\n\treason \"#{@fault.reason}\"" + "\n\tdetail \"#{@fault.detail}\"" end |