jimm.twice.ice.xml
Class Fault

java.lang.Object
  extended byjimm.twice.ice.xml.Message
      extended byjimm.twice.ice.xml.Fault

public class Fault
extends Message

A fault records an error id and optional message. The XML returned by toString is a SOAP fault which contains an ICE fault.

Author:
Jim Menard, jimm@io.com

Field Summary
 
Fields inherited from class jimm.twice.ice.xml.Message
node
 
Constructor Summary
Fault(IceFault fault)
          Constructor.
 
Method Summary
protected  void addCode()
          Add the SOAP fault code.
protected  void addDetail(IceFault fault)
          Add the SOAP fault detail, which contains the ICE fault.
protected  void addReason(IceFault fault)
          Add the SOAP fault reason.
 
Methods inherited from class jimm.twice.ice.xml.Message
addChild, addChild, addChild, getAttribute, getNode, getTag, setAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Fault

public Fault(IceFault fault)
Constructor.

Parameters:
fault - the ICE fault
Method Detail

addCode

protected void addCode()
Add the SOAP fault code. These values are always the same.


addReason

protected void addReason(IceFault fault)
Add the SOAP fault reason. Use the ICE fault's error phrase.

Parameters:
fault - the ICE fault

addDetail

protected void addDetail(IceFault fault)
Add the SOAP fault detail, which contains the ICE fault.

Parameters:
fault - the ICE fault