package anastore.net;

import java.io.EOFException;
import java.io.IOException;

/**
 * Exception that is thrown when an operation is performed on a closed
 * channel, and by all threads blocking on receive operations when the
 * thread is closed..
 */
public class ChannelClosedException extends EOFException {

    /**
     * Creates a new <code>ChannelClosedException</code> instance.
     *
     * @param cause the IOException that caused the channel to be
     * closed
     */
    public ChannelClosedException(IOException cause) {
        super();
        initCause(cause);
    }
}
