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:
- Serialized Form
-
-
Constructor Summary
Constructors 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
Methods Modifier and Type Method and Description Attribute[]
getAttributes()
Gets the attributes.FaultDescription[]
getDescriptions()
Gets the set of descriptions.ErrorCode
getErrorCode()
Gets the error code.IOSerializableSOAPElement[]
getExtensibilityElements()
Gets the extensibility elements.IOSerializableSOAPElement
getFaultCause()
Gets the fault case.EndpointReference
getOriginator()
Gets the originator.java.util.Calendar
getTimestamp()
Gets the timestamp.void
setAttributes(Attribute[] attributes)
Sets the attributes.void
setDescriptions(FaultDescription[] descriptions)
Sets the descriptions.void
setErrorCode(ErrorCode errorCode)
Sets the error code.void
setExtensibilityElements(IOSerializableSOAPElement[] extensibilityElements)
Sets the extensibility elements.void
setFaultCause(IOSerializableSOAPElement faultCause)
Sets the fault cause.void
setOriginator(EndpointReference originator)
Sets the originator.void
setTimestamp(java.util.Calendar timestamp)
Sets the timestamp.
-
-
-
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.
-
-