com.ibm.websphere.wsrf
Class BaseFault
- java.lang.Object
java.lang.Throwable
java.lang.Exception
com.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
- public class BaseFault
- 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:
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 |
|---|---|
getAttributes()
Gets the attributes.
|
|
getDescriptions()
Gets the set of descriptions.
|
|
getErrorCode()
Gets the error code.
|
|
getExtensibilityElements()
Gets the extensibility elements.
|
|
getFaultCause()
Gets the fault case.
|
|
getOriginator()
Gets the originator.
|
|
|
getTimestamp()
Gets the timestamp.
|
|
setAttributes(Attribute[] attributes)
Sets the attributes.
|
|
setDescriptions(FaultDescription[] descriptions)
Sets the descriptions.
|
|
setErrorCode(ErrorCode errorCode)
Sets the error code.
|
|
setExtensibilityElements(IOSerializableSOAPElement[] extensibilityElements)
Sets the extensibility elements.
|
|
setFaultCause(IOSerializableSOAPElement faultCause)
Sets the fault cause.
|
|
setOriginator(EndpointReference originator)
Sets the originator.
|
|
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
- 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
- public BaseFault(EndpointReference originator,
- ErrorCode errorCode,
- FaultDescription[] descriptions,
- IOSerializableSOAPElement faultCause,
- IOSerializableSOAPElement[] extensibilityElements,
- 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
- public java.util.Calendar getTimestamp( )
Gets the timestamp.
Returns:
The timestamp.
setTimestamp
- public void setTimestamp(java.util.Calendar timestamp)
Sets the timestamp.
Parameters:
timestamp - The new timetamp. getOriginator
- public EndpointReference getOriginator( )
Gets the originator.
Returns:
The originator, or null if none present.
setOriginator
- public void setOriginator(EndpointReference originator)
Sets the originator.
Parameters:
originator - The new originator. getErrorCode
- public ErrorCode getErrorCode()
Gets the error code.
Returns:
The error code, or null if none present.
setErrorCode
- public void setErrorCode(ErrorCode errorCode)
Sets the error code.
Parameters:
errorCode - The new error code. getDescriptions
- public FaultDescription[] getDescriptions( )
Gets the set of descriptions.
Returns:
The set of descriptions, or null if none present.
setDescriptions
- public void setDescriptions(FaultDescription[] descriptions)
Sets the descriptions.
Parameters:
descriptions - The new descriptions array. getFaultCause
- public IOSerializableSOAPElement getFaultCause( )
Gets the fault case.
Returns:
The fault cause, or null if none present.
setFaultCause
- public void setFaultCause(IOSerializableSOAPElement faultCause)
Sets the fault cause.
Parameters:
faultCause - The new fault cause. getExtensibilityElements
- public IOSerializableSOAPElement[] getExtensibilityElements( )
Gets the extensibility elements.
Returns:
The extensibility elements, or null if none present.
setExtensibilityElements
- public void setExtensibilityElements( IOSerializableSOAPElement[] extensibilityElements)
Sets the extensibility elements.
Parameters:
extensibilityElements - The new set of extensibility elements value. getAttributes
- public Attribute[] getAttributes( )
Gets the attributes.
Returns:
An array of Attributes, or null if none exist.
setAttributes
- public void setAttributes(Attribute[] attributes)
Sets the attributes.
Parameters:
attributes - The array of Attributes.