From 4ff98c359cc377bb3640baeae96b7123291e34fa Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 30 May 2012 15:57:57 -0700 Subject: [PATCH] Add PrematureChannelClosureException --- .../PrematureChannelClosureException.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 codec/src/main/java/io/netty/handler/codec/PrematureChannelClosureException.java diff --git a/codec/src/main/java/io/netty/handler/codec/PrematureChannelClosureException.java b/codec/src/main/java/io/netty/handler/codec/PrematureChannelClosureException.java new file mode 100644 index 0000000000..44725eeafd --- /dev/null +++ b/codec/src/main/java/io/netty/handler/codec/PrematureChannelClosureException.java @@ -0,0 +1,41 @@ +package io.netty.handler.codec; + +import io.netty.channel.Channel; + +/** + * A {@link CodecException} which is thrown when a {@link Channel} is closed unexpectedly before + * the codec finishes handling the current message, such as missing response while waiting for a + * request. + */ +public class PrematureChannelClosureException extends CodecException { + + private static final long serialVersionUID = 4907642202594703094L; + + /** + * Creates a new instance. + */ + public PrematureChannelClosureException() { + super(); + } + + /** + * Creates a new instance. + */ + public PrematureChannelClosureException(String message, Throwable cause) { + super(message, cause); + } + + /** + * Creates a new instance. + */ + public PrematureChannelClosureException(String message) { + super(message); + } + + /** + * Creates a new instance. + */ + public PrematureChannelClosureException(Throwable cause) { + super(cause); + } +}