org.d_haven.event
Class EnqueuePredicateFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.d_haven.event.SinkException
              extended by org.d_haven.event.EnqueuePredicateFailedException
All Implemented Interfaces:
java.io.Serializable

public class EnqueuePredicateFailedException
extends SinkException

If the EnqueuePredicate returns false, denying an event to the Sink, the Sink will throw this exception.

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.

See Also:
Serialized Form

Constructor Summary
EnqueuePredicateFailedException(java.lang.String message)
          Construct a new SinkException instance.
EnqueuePredicateFailedException(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

EnqueuePredicateFailedException

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

Parameters:
message - The detail message for this exception.

EnqueuePredicateFailedException

public EnqueuePredicateFailedException(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()
Description copied from class: SinkException
Get the string representation of this exception.

Overrides:
toString in class SinkException
Returns:
the string message