Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.5)

Part Number E13941-05

weblogic.wsee.reliability2.api
Interface ReliabilityErrorContext


public interface ReliabilityErrorContext

Provides details of a reliability failure.


Method Summary
 List<Throwable> getFaults()
          Returns a list of Throwables that describe all the errors that caused the reliable delivery to fail.
 String getFaultSummaryMessage()
          Returns a summary message containing a summary of all the errors the caused this reliable delivery to fail.
 String getOperationName()
           
<T> T
getRequest(javax.xml.bind.JAXBContext jaxbContext, Class<T> clazz)
          Use the given JAXBContext to get the request that was being sent when the failure happened.
 javax.xml.stream.XMLStreamReader getRequestStreamReader()
          Get the request (as an XMLStreamReader) that was being sent when the failure happened.
 Map<String,Serializable> getUserRequestContextProperties()
           
 boolean isRequestSpecific()
          Indicates if this error relates to a request on the sequence (as opposed to the sequence itself).
 

Method Detail

isRequestSpecific

boolean isRequestSpecific()
Indicates if this error relates to a request on the sequence (as opposed to the sequence itself). If this method returns true, you can use the getOperationName(), getRequestStreamReader() and getRequest() methods to get information about the failed request. If this method returns false, you must not use any of the request-related messages. In either case, you can use the getFaults(), getFaultSummaryMessage(), and getUserRequestContextProperties() methods.


getOperationName

String getOperationName()
Returns:
The operation that caused the failure

getRequestStreamReader

javax.xml.stream.XMLStreamReader getRequestStreamReader()
                                                        throws javax.xml.stream.XMLStreamException
Get the request (as an XMLStreamReader) that was being sent when the failure happened.

Throws:
javax.xml.stream.XMLStreamException

getRequest

<T> T getRequest(javax.xml.bind.JAXBContext jaxbContext,
                 Class<T> clazz)
             throws javax.xml.bind.JAXBException,
                    javax.xml.stream.XMLStreamException
Use the given JAXBContext to get the request that was being sent when the failure happened.

Throws:
javax.xml.bind.JAXBException
javax.xml.stream.XMLStreamException

getFaults

List<Throwable> getFaults()
Returns a list of Throwables that describe all the errors that caused the reliable delivery to fail. If you'd like to have a summary message instead of a list of Throwables, use the getFaultSummaryMessage() method. This method will never return null, but may be empty if no original exception is available.


getFaultSummaryMessage

String getFaultSummaryMessage()
Returns a summary message containing a summary of all the errors the caused this reliable delivery to fail. This method will never return null and will always return some descriptive information about the error.


getUserRequestContextProperties

Map<String,Serializable> getUserRequestContextProperties()
Returns:
The user-defined context properties passed in as a Map with the request being sent when the failure happened, or null if no such properties were supplied.

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.5)

Part Number E13941-05