uk.org.ogsadai.client.toolkit.service.faults
Class ChainedFaultType

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.rmi.RemoteException
                  extended byorg.apache.axis.AxisFault
                      extended byuk.org.ogsadai.client.toolkit.service.faults.DAIFaultType
                          extended byuk.org.ogsadai.client.toolkit.service.faults.SimpleFaultType
                              extended byuk.org.ogsadai.client.toolkit.service.faults.ComplexFaultType
                                  extended byuk.org.ogsadai.client.toolkit.service.faults.ChainedFaultType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RequestFaultType

public abstract class ChainedFaultType
extends ComplexFaultType

Client-side representation of deserialized ChainedFaultType.

Author:
The OGSA-DAI Team.
See Also:
Serialized Form

Field Summary
static java.lang.String CAUSE_LOCALNAME
          reason local name
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  ReasonFaultType[] mCauses
          Causes of the fault
 
Fields inherited from class uk.org.ogsadai.client.toolkit.service.faults.ComplexFaultType
PARAMETER_LOCALNAME
 
Fields inherited from class uk.org.ogsadai.client.toolkit.service.faults.SimpleFaultType
ID_LOCALNAME, MSG_LOCALNAME
 
Fields inherited from class org.apache.axis.AxisFault
faultActor, faultCode, faultDetails, faultHeaders, faultNode, faultString, faultSubCode, log
 
Fields inherited from class java.rmi.RemoteException
detail
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
ChainedFaultType(org.w3c.dom.Element[] details)
          Parses the detail element of a SOAP fault.
ChainedFaultType(java.lang.String id, java.lang.String msg)
          Creates a new ChainedFaultType from an error ID and a message.
ChainedFaultType(java.lang.String id, java.lang.String msg, java.lang.String[] params)
          Creates a new ChainedFaultType from an error ID, a message and parameters.
ChainedFaultType(java.lang.String id, java.lang.String msg, java.lang.String[] params, ReasonFaultType[] causes)
          Creates a new ChainedFaultType from an error ID, a message and parameters and faults that caused this fault.
 
Method Summary
 ReasonFaultType getCause(int i)
          Get the cause at index i
 ReasonFaultType[] getCauses()
          Gets the causes.
protected  void parseFaultDetails(org.w3c.dom.Element element)
          Parses the detail element of a SOAP fault element.
 void setCause(int i, ReasonFaultType cause)
          Set the cause at index i
 void setCauses(ReasonFaultType[] causes)
          Sets the causes.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.service.faults.ComplexFaultType
getParameter, getParameters, setParameter, setParameters
 
Methods inherited from class uk.org.ogsadai.client.toolkit.service.faults.SimpleFaultType
getID, getMsg, setID, setMsg
 
Methods inherited from class uk.org.ogsadai.client.toolkit.service.faults.DAIFaultType
getXMLName
 
Methods inherited from class org.apache.axis.AxisFault
addFaultDetail, addFaultDetail, addFaultDetailString, addFaultSubCode, addFaultSubCodeAsString, addHeader, addHostname, addHostnameIfNeeded, clearFaultDetails, clearFaultSubCodes, clearHeaders, dump, dumpToString, getFaultActor, getFaultCode, getFaultDetails, getFaultNode, getFaultReason, getFaultRole, getFaultString, getFaultSubCodes, getHeaders, initFaultSubCodes, lookupFaultDetail, makeFault, output, printStackTrace, printStackTrace, removeFaultDetail, removeHostname, setFaultActor, setFaultCode, setFaultCode, setFaultCodeAsString, setFaultDetail, setFaultDetailString, setFaultNode, setFaultReason, setFaultRole, setFaultString, toString, writeDetails
 
Methods inherited from class java.rmi.RemoteException
getCause, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mCauses

private ReasonFaultType[] mCauses
Causes of the fault


CAUSE_LOCALNAME

public static java.lang.String CAUSE_LOCALNAME
reason local name

Constructor Detail

ChainedFaultType

public ChainedFaultType(java.lang.String id,
                        java.lang.String msg)
Creates a new ChainedFaultType from an error ID and a message.

Parameters:
id - Error ID.
msg - Error message.

ChainedFaultType

public ChainedFaultType(java.lang.String id,
                        java.lang.String msg,
                        java.lang.String[] params)
Creates a new ChainedFaultType from an error ID, a message and parameters.

Parameters:
id - Error ID.
msg - Error message.
params - Error parameters.

ChainedFaultType

public ChainedFaultType(java.lang.String id,
                        java.lang.String msg,
                        java.lang.String[] params,
                        ReasonFaultType[] causes)
Creates a new ChainedFaultType from an error ID, a message and parameters and faults that caused this fault.

Parameters:
id - Error ID.
msg - Error message.
params - Error parameters.
causes - Faults that gave rise to this fault.

ChainedFaultType

public ChainedFaultType(org.w3c.dom.Element[] details)
Parses the detail element of a SOAP fault.

Parameters:
details - detail elements
Method Detail

parseFaultDetails

protected void parseFaultDetails(org.w3c.dom.Element element)
Description copied from class: SimpleFaultType
Parses the detail element of a SOAP fault element.

Overrides:
parseFaultDetails in class ComplexFaultType

getCauses

public ReasonFaultType[] getCauses()
Gets the causes.

Returns:
causes

setCauses

public void setCauses(ReasonFaultType[] causes)
Sets the causes.

Parameters:
causes - Causes of this fault.

getCause

public ReasonFaultType getCause(int i)
Get the cause at index i

Parameters:
i - Index
Returns:
cause

setCause

public void setCause(int i,
                     ReasonFaultType cause)
Set the cause at index i

Parameters:
i - Index
cause - Cause