org.apache.qpid.util.concurrent
Class SynchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.qpid.util.concurrent.SynchException
- All Implemented Interfaces:
- Serializable
public class SynchException
- extends Exception
SynchException is used to encapsulate exceptions with the data elements that caused them in order to send exceptions
back from the consumers of a BatchSynchQueue
to producers. The underlying exception should be retrieved from
the Throwable.getCause()
method.
CRC Card
Responsibilities | Collaborations
|
---|
Encapsulate a data element and exception.
|
- See Also:
- Serialized Form
Field Summary |
(package private) Object |
element
Holds the data element that is in error. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
element
Object element
- Holds the data element that is in error.
SynchException
public SynchException(String message,
Throwable cause,
Object element)
- Creates a new BaseApplicationException object.
- Parameters:
message
- The exception message.cause
- The underlying throwable cause. This may be null.
Licensed to the Apache Software Foundation