class SOAP::FaultError

Attributes

detail[RW]
faultactor[R]
faultcode[R]
faultstring[R]

Public Class Methods

new(fault) click to toggle source
Calls superclass method
# File lib/soap/soap.rb, line 106
def initialize(fault)
  @faultcode = fault.faultcode
  @faultstring = fault.faultstring
  if @faultstring and @faultstring.respond_to?('data')
    @faultmessage = fault.faultstring.data
  else
    @faultmessage = nil
  end
  @faultactor = fault.faultactor
  @detail = fault.detail
  super(self.to_s)
end

Public Instance Methods

message=(message) click to toggle source
# File lib/soap/soap.rb, line 102
def message=(message)
  @faultmessage = message
end
to_s() click to toggle source
# File lib/soap/soap.rb, line 119
def to_s
  str = nil
  if @faultmessage
    str = @faultmessage.to_s
  elsif @faultstring and @faultstring.respond_to?('data')
    str = @faultstring.data
  end
  str || '(No faultstring)'
end