com.ibm.websphere.wsrf

Class BaseFault

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended bycom.ibm.websphere.wsrf.BaseFault
All implemented interfaces:
java.io.Serializable
Direct known subclasses:
AddRefusedFault, ContentCreationFailedFault, DeleteResourcePropertiesRequestFailedFault, InsertResourcePropertiesRequestFailedFault, InvalidFilterFault, InvalidMessageContentExpressionFault, InvalidModificationFault, InvalidProducerPropertiesExpressionFault, InvalidQueryExpressionFault, InvalidResourcePropertyQNameFault, InvalidTopicExpressionFault, MultipleTopicsSpecifiedFault, NoCurrentMessageOnTopicFault, NotifyMessageNotSupportedFault, PauseFailedFault, PublisherRegistrationFailedFault, PublisherRegistrationRejectedFault, QueryEvaluationErrorFault, ResourceNotDestroyedFault, ResourceNotDestroyedFault, ResourceUnavailableFault, ResourceUnknownFault, ResumeFailedFault, SetResourcePropertyRequestFailedFault, SubscribeCreationFailedFault, TerminationTimeChangeRejectedFault, TopicExpressionDialectUnknownFault, TopicNotSupportedFault, UnableToCreatePullPointFault, UnableToDestroyPullPointFault, UnableToDestroySubscriptionFault, UnableToGetMessagesFault, UnableToModifyResourcePropertyFault, UnableToPutResourcePropertyDocumentFault, UnableToSetTerminationTimeFault, UnacceptableInitialTerminationTimeFault, UnacceptableTerminationTimeFault, UnknownQueryExpressionDialectFault, UnrecognizedPolicyRequestFault, UnsupportedMemberInterfaceFault, UnsupportedPolicyRequestFault, UpdateResourcePropertiesRequestFailedFault

  1. public class BaseFault
  2. extends java.lang.Exception

This class represents the XML complexType "wsrf-bf:BaseFault"

 <xsd:complexType name="BaseFaultType">
    <xsd:sequence>
      <xsd:any namespace="##other" processContents="lax"
               minOccurs="0" maxOccurs="unbounded"/>
      <xsd:element name="Timestamp" type="xsd:dateTime" 
               minOccurs="1" maxOccurs="1"/>
      <xsd:element name="Originator" type="wsa:EndpointReferenceType" 
               minOccurs="0" maxOccurs="1"/>
      <xsd:element name="ErrorCode" 
               minOccurs="0" maxOccurs="1">
        <xsd:complexType>
          <xsd:complexContent mixed="true">
            <xsd:extension base="xsd:anyType">
              <xsd:attribute name="dialect" type="xsd:anyURI"
                         use="required"/>
            </xsd:extension>
          </xsd:complexContent>
        </xsd:complexType>      
      </xsd:element>

      <xsd:element name="Description" 
               minOccurs="0" maxOccurs="unbounded">
        <xsd:complexType>
          <xsd:simpleContent>
            <xsd:extension base="xsd:string">
              <xsd:attribute ref="xml:lang" use="optional"/>
            </xsd:extension>
          </xsd:simpleContent>
        </xsd:complexType>
      </xsd:element>
 
      <xsd:element name="FaultCause" minOccurs="0" maxOccurs="1">
         <xsd:complexType>
          <xsd:sequence>
              <xsd:any namespace="##other" processContents="lax" 
                     minOccurs="1" maxOccurs="1"/>
           </xsd:sequence>
         </xsd:complexType> 
      </xsd:element>

    </xsd:sequence>
    <xsd:anyAttribute namespace="##other" processContents="lax"/>
 </xsd:complexType>
 
See Also:
Serialized Form

Constructor Summary

Constructor and Description
BaseFault()
Default constructor.
BaseFault(EndpointReference originator,ErrorCode errorCode,FaultDescription[] descriptions,IOSerializableSOAPElement faultCause,IOSerializableSOAPElement[] extensibilityElements,Attribute[] attributes)
Constructor for a new BaseFault instance.

Method Summary

Modifier and Type Method and Description
  1. Attribute[]
getAttributes()
Gets the attributes.
  1. FaultDescription[]
getDescriptions()
Gets the set of descriptions.
  1. ErrorCode
getErrorCode()
Gets the error code.
  1. IOSerializableSOAPElement[]
getExtensibilityElements()
Gets the extensibility elements.
  1. IOSerializableSOAPElement
getFaultCause()
Gets the fault case.
  1. EndpointReference
getOriginator()
Gets the originator.
  1. java.util.Calendar
getTimestamp()
Gets the timestamp.
  1. void
setAttributes(Attribute[] attributes)
Sets the attributes.
  1. void
setDescriptions(FaultDescription[] descriptions)
Sets the descriptions.
  1. void
setErrorCode(ErrorCode errorCode)
Sets the error code.
  1. void
setExtensibilityElements(IOSerializableSOAPElement[] extensibilityElements)
Sets the extensibility elements.
  1. void
setFaultCause(IOSerializableSOAPElement faultCause)
Sets the fault cause.
  1. void
setOriginator(EndpointReference originator)
Sets the originator.
  1. void
setTimestamp(java.util.Calendar timestamp)
Sets the timestamp.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

BaseFault

  1. public BaseFault()
Default constructor. Constructs a BaseFault with the just the mandatory timestamp field set. Other fields may be modified using the 'set' methods.

BaseFault

  1. public BaseFault(EndpointReference originator,
  2. ErrorCode errorCode,
  3. FaultDescription[] descriptions,
  4. IOSerializableSOAPElement faultCause,
  5. IOSerializableSOAPElement[] extensibilityElements,
  6. Attribute[] attributes)
Constructor for a new BaseFault instance. Since all fields are optional, null may be passed for any value to omit a field.
Parameters:
originator - The WS-Addressing EndpointReference of the Web Service that generated the fault.
errorCode - The error code.
descriptions - The set of descriptions.
faultCause - The fault cause.
extensibilityElements - The set of extensibility elements.
attributes - The set of attributes

Method Detail

getTimestamp

  1. public java.util.Calendar getTimestamp( )
Gets the timestamp.
Returns:
The timestamp.

setTimestamp

  1. public void setTimestamp(java.util.Calendar timestamp)
Sets the timestamp.
Parameters:
timestamp - The new timetamp.

getOriginator

  1. public EndpointReference getOriginator( )
Gets the originator.
Returns:
The originator, or null if none present.

setOriginator

  1. public void setOriginator(EndpointReference originator)
Sets the originator.
Parameters:
originator - The new originator.

getErrorCode

  1. public ErrorCode getErrorCode()
Gets the error code.
Returns:
The error code, or null if none present.

setErrorCode

  1. public void setErrorCode(ErrorCode errorCode)
Sets the error code.
Parameters:
errorCode - The new error code.

getDescriptions

  1. public FaultDescription[] getDescriptions( )
Gets the set of descriptions.
Returns:
The set of descriptions, or null if none present.

setDescriptions

  1. public void setDescriptions(FaultDescription[] descriptions)
Sets the descriptions.
Parameters:
descriptions - The new descriptions array.

getFaultCause

  1. public IOSerializableSOAPElement getFaultCause( )
Gets the fault case.
Returns:
The fault cause, or null if none present.

setFaultCause

  1. public void setFaultCause(IOSerializableSOAPElement faultCause)
Sets the fault cause.
Parameters:
faultCause - The new fault cause.

getExtensibilityElements

  1. public IOSerializableSOAPElement[] getExtensibilityElements( )
Gets the extensibility elements.
Returns:
The extensibility elements, or null if none present.

setExtensibilityElements

  1. public void setExtensibilityElements( IOSerializableSOAPElement[] extensibilityElements)
Sets the extensibility elements.
Parameters:
extensibilityElements - The new set of extensibility elements value.

getAttributes

  1. public Attribute[] getAttributes( )
Gets the attributes.
Returns:
An array of Attributes, or null if none exist.

setAttributes

  1. public void setAttributes(Attribute[] attributes)
Sets the attributes.
Parameters:
attributes - The array of Attributes.