Returns a new instance of Exception.
16 17 18 19 20 21 22
# File 'lib/wbem/openwsman.rb', line 16 def initialize fault unless fault.is_a? Openwsman::Fault raise "#{fault} is not a fault" unless fault.fault? fault = Openwsman::Fault.new fault end @fault = fault end