org.d_haven.event

Class SinkClosedException

public class SinkClosedException extends SinkException

A SinkClosedException is thrown when an enqueue operation occurs on a queue that is already closed.

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

Constructor Summary
SinkClosedException(String message)
Create a SinkClosedException with an associated message.
SinkClosedException(String message, Exception e)
Create a SinkClosedException with an associated message and the original exception that caused the problem.
Method Summary
StringtoString()

Constructor Detail

SinkClosedException

public SinkClosedException(String message)
Create a SinkClosedException with an associated message.

Parameters: message The string message to print in the stack trace

SinkClosedException

public SinkClosedException(String message, Exception e)
Create a SinkClosedException with an associated message and the original exception that caused the problem.

Parameters: message The string message to print in the stack trace e The exception that caused this one.

Method Detail

toString

public String toString()