org.d_haven.event
Class SinkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.d_haven.event.SinkException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EnqueuePredicateFailedException, SinkClosedException, SinkFullException

public class SinkException
extends java.lang.Exception

A SourceException is thrown when an enqueue operation fails.

The interface design is heavily influenced by Matt Welsh's SandStorm server, his demonstration of the SEDA architecture. We have deviated where we felt the design differences where better.

Author:
Berin Loritsch
See Also:
Serialized Form

Constructor Summary
SinkException(java.lang.String message)
          Construct a new SinkException instance.
SinkException(java.lang.String message, java.lang.Exception throwable)
          Construct a new SinkException instance.
 
Method Summary
 java.lang.String toString()
          Get the string representation of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SinkException

public SinkException(java.lang.String message)
Construct a new SinkException instance.

Parameters:
message - The detail message for this exception.

SinkException

public SinkException(java.lang.String message,
                     java.lang.Exception throwable)
Construct a new SinkException instance.

Parameters:
message - The detail message for this exception.
throwable - the root cause of the exception
Method Detail

toString

public java.lang.String toString()
Get the string representation of this exception.

Overrides:
toString in class java.lang.Throwable
Returns:
the string message