org.apache.ws.resource.faults
Class BaseFaultException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjavax.xml.rpc.soap.SOAPFaultException
                  extended byorg.apache.ws.resource.faults.BaseFaultException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidQueryExpressionFaultException, InvalidResourcePropertyQNameFaultException, InvalidSetResourcePropertiesRequestContentFaultException, QueryEvaluationErrorFaultException, ResourceNotDestroyedFaultException, ResourceUnknownFaultException, ResourceUnknownFaultException, ResoureKeyHeaderNotFoundFaultException, SetResourcePropertyRequestFailedFaultException, TerminationTimeChangeRejectedFaultException, UnableToModifyResourcePropertyFaultException, UnableToSetTerminationTimeFaultException, UnknownQueryExpressionDialectFaultException

public class BaseFaultException
extends javax.xml.rpc.soap.SOAPFaultException

LOG-DONE The WS-BaseFaults base fault type implemented as a Java exception.

Author:
Ian P. Springer
See Also:
Serialized Form

Field Summary
static org.apache.ws.util.i18n.Messages MSG
           
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
BaseFaultException()
          Constructs a new BaseFaultException with the default name (wsbf:BaseFault).
BaseFaultException(javax.xml.namespace.QName name)
          Constructs a new BaseFaultException with the specified name.
BaseFaultException(javax.xml.namespace.QName name, javax.xml.namespace.QName faultCode)
          Constructs a new BaseFaultException with the specified name and SOAP fault code.
BaseFaultException(javax.xml.namespace.QName name, javax.xml.namespace.QName faultCode, java.lang.String faultString)
          Constructs a new BaseFaultException with the specified name, SOAP fault code, and SOAP fault string.
 
Method Summary
 java.lang.String[] getDescription()
          DOCUMENT_ME
 ErrorCode getErrorCode()
          DOCUMENT_ME
 BaseFaultException[] getFaultCause()
          DOCUMENT_ME
 javax.xml.namespace.QName getName()
           
 org.apache.axis.message.addressing.EndpointReferenceType getOriginator()
          DOCUMENT_ME
 java.util.Calendar getTimestamp()
          DOCUMENT_ME
 void setDescription(java.lang.String[] description)
          DOCUMENT_ME
 void setErrorCode(ErrorCode errorCode)
          DOCUMENT_ME
 void setFaultCause(BaseFaultException[] faultCause)
          DOCUMENT_ME
 void setOriginator(org.apache.axis.message.addressing.EndpointReferenceType originator)
          DOCUMENT_ME
 void setTimestamp(java.util.Calendar timestamp)
          DOCUMENT_ME
 java.lang.String toString()
          DOCUMENT_ME
 
Methods inherited from class javax.xml.rpc.soap.SOAPFaultException
getDetail, getFaultActor, getFaultCode, getFaultString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MSG

public static final org.apache.ws.util.i18n.Messages MSG
Constructor Detail

BaseFaultException

public BaseFaultException()
Constructs a new BaseFaultException with the default name (wsbf:BaseFault). The SOAP fault code will be set to soap:Client and the SOAP fault string will be set to the fault name. Sets the timestamp field to the current time and the SOAP actor and detail fields to null.


BaseFaultException

public BaseFaultException(javax.xml.namespace.QName name)
Constructs a new BaseFaultException with the specified name. The SOAP fault code will be set to soap:Client and the SOAP fault string will be set to the fault name. Sets the timestamp field to the current time and the SOAP actor and detail fields to null.

Parameters:
name - XML element name to use when serializing this fault

BaseFaultException

public BaseFaultException(javax.xml.namespace.QName name,
                          javax.xml.namespace.QName faultCode)
Constructs a new BaseFaultException with the specified name and SOAP fault code. The SOAP fault string will be set to the fault name. Sets the timestamp field to the current time and the SOAP actor and detail fields to null.

Parameters:
name - XML element name to use when serializing this fault
faultCode - the SOAP fault code

BaseFaultException

public BaseFaultException(javax.xml.namespace.QName name,
                          javax.xml.namespace.QName faultCode,
                          java.lang.String faultString)
Constructs a new BaseFaultException with the specified name, SOAP fault code, and SOAP fault string. Sets the timestamp field to the current time and the SOAP actor and detail fields to null.

Parameters:
name - XML element name to use when serializing this fault
faultCode - the SOAP fault code
faultString - the SOAP fault string; if null, String.valueOf( name ) will be used as faultString
Method Detail

setDescription

public void setDescription(java.lang.String[] description)
DOCUMENT_ME

Parameters:
description - DOCUMENT_ME

getDescription

public java.lang.String[] getDescription()
DOCUMENT_ME

Returns:
DOCUMENT_ME

setErrorCode

public void setErrorCode(ErrorCode errorCode)
DOCUMENT_ME

Parameters:
errorCode - DOCUMENT_ME

getErrorCode

public ErrorCode getErrorCode()
DOCUMENT_ME

Returns:
DOCUMENT_ME

setFaultCause

public void setFaultCause(BaseFaultException[] faultCause)
DOCUMENT_ME

Parameters:
faultCause - DOCUMENT_ME

getFaultCause

public BaseFaultException[] getFaultCause()
DOCUMENT_ME

Returns:
DOCUMENT_ME

getName

public javax.xml.namespace.QName getName()
Returns:

setOriginator

public void setOriginator(org.apache.axis.message.addressing.EndpointReferenceType originator)
DOCUMENT_ME

Parameters:
originator - DOCUMENT_ME

getOriginator

public org.apache.axis.message.addressing.EndpointReferenceType getOriginator()
DOCUMENT_ME

Returns:
DOCUMENT_ME

setTimestamp

public void setTimestamp(java.util.Calendar timestamp)
DOCUMENT_ME

Parameters:
timestamp - DOCUMENT_ME

getTimestamp

public java.util.Calendar getTimestamp()
DOCUMENT_ME

Returns:
DOCUMENT_ME

toString

public java.lang.String toString()
DOCUMENT_ME

Returns:
DOCUMENT_ME


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.