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

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AuthorisationFaultType, ComplexFaultType, InternalFaultType, ResourceBusyFaultType, ResourceUnknownFaultType

public abstract class SimpleFaultType
extends DAIFaultType

Client-side representation of deserialized SimpleFaultType.

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

Field Summary
static java.lang.String ID_LOCALNAME
          errorID element name
private  java.lang.String mID
           
private  java.lang.String mMsg
           
static java.lang.String MSG_LOCALNAME
          msg element name
 
Fields inherited from class uk.org.ogsadai.client.toolkit.service.faults.DAIFaultType
 
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
SimpleFaultType(org.w3c.dom.Element[] details)
          Parses the detail element of a SOAP fault.
SimpleFaultType(java.lang.String id, java.lang.String msg)
          Creates a new SimpleFaultType from an error ID and a message.
 
Method Summary
 java.lang.String getID()
          Gets the error ID.
 java.lang.String getMsg()
          Gets the message.
protected  void parseFaultDetails(org.w3c.dom.Element element)
          Parses the detail element of a SOAP fault element.
 void setID(java.lang.String id)
          Sets the error ID.
 void setMsg(java.lang.String msg)
          Sets the message.
 
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

mID

private java.lang.String mID

mMsg

private java.lang.String mMsg

ID_LOCALNAME

public static java.lang.String ID_LOCALNAME
errorID element name


MSG_LOCALNAME

public static java.lang.String MSG_LOCALNAME
msg element name

Constructor Detail

SimpleFaultType

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

Parameters:
id - error ID.
msg - error message

SimpleFaultType

public SimpleFaultType(org.w3c.dom.Element[] details)
Parses the detail element of a SOAP fault. Subclasses of this class MUST provide a constructor which takes an org.w3c.dom.Element as an argument

Parameters:
details - detail elements
Method Detail

parseFaultDetails

protected void parseFaultDetails(org.w3c.dom.Element element)
Parses the detail element of a SOAP fault element.

Parameters:
element - fault detail element

getID

public java.lang.String getID()
Gets the error ID.

Returns:
error ID.

setID

public void setID(java.lang.String id)
Sets the error ID.

Parameters:
id - error ID.

getMsg

public java.lang.String getMsg()
Gets the message.

Returns:
message

setMsg

public void setMsg(java.lang.String msg)
Sets the message.

Parameters:
msg - error message.