Exception: SOAP::FaultError
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#faultactor ⇒ Object
readonly
Returns the value of attribute faultactor.
-
#faultcode ⇒ Object
readonly
Returns the value of attribute faultcode.
-
#faultstring ⇒ Object
readonly
Returns the value of attribute faultstring.
Attributes included from NestedException
Instance Method Summary collapse
-
#initialize(fault) ⇒ FaultError
constructor
A new instance of FaultError.
- #to_s ⇒ Object
Methods included from NestedException
Constructor Details
#initialize(fault) ⇒ FaultError
Returns a new instance of FaultError.
103 104 105 106 107 108 109 |
# File 'lib/soap/soap.rb', line 103 def initialize(fault) @faultcode = fault.faultcode @faultstring = fault.faultstring @faultactor = fault.faultactor @detail = fault.detail super(self.to_s) end |
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail.
101 102 103 |
# File 'lib/soap/soap.rb', line 101 def detail @detail end |
#faultactor ⇒ Object (readonly)
Returns the value of attribute faultactor.
100 101 102 |
# File 'lib/soap/soap.rb', line 100 def faultactor @faultactor end |
#faultcode ⇒ Object (readonly)
Returns the value of attribute faultcode.
98 99 100 |
# File 'lib/soap/soap.rb', line 98 def faultcode @faultcode end |
#faultstring ⇒ Object (readonly)
Returns the value of attribute faultstring.
99 100 101 |
# File 'lib/soap/soap.rb', line 99 def faultstring @faultstring end |
Instance Method Details
#to_s ⇒ Object
111 112 113 114 115 116 117 |
# File 'lib/soap/soap.rb', line 111 def to_s str = nil if @faultstring and @faultstring.respond_to?('data') str = @faultstring.data end str || '(No faultstring)' end |