org.apache.qpid.util.concurrent
Class SynchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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.
 
Constructor Summary
SynchException(String message, Throwable cause, Object element)
          Creates a new BaseApplicationException object.
 
Method Summary
 
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
 

Field Detail

element

Object element
Holds the data element that is in error.

Constructor Detail

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