29 * This exception may be thrown as a result of an asynchronous
30 * close of a {@link Connection} while an I/O operation is
31 * in progress.
32 *
33 * <p> When a thread is blocked in {@link Connection#readPacket
34 * readPacket} waiting for packet from a target VM the
35 * {@link Connection} may be closed asynchronous by another
36 * thread invokving the {@link Connection#close close} method.
37 * When this arises the thread in readPacket will throw this
38 * exception. Similiarly when a thread is blocked in
39 * {@link Connection#writePacket} the Connection may be closed.
40 * When this occurs the thread in writePacket will throw
41 * this exception.
42 *
43 * @see Connection#readPacket
44 * @see Connection#writePacket
45 *
46 * @since 1.5
47 */
48 public class ClosedConnectionException extends java.io.IOException {
49 private static final long serialVersionUID = 3877032124297204774L;
50 /**
51 * Constructs a {@code ClosedConnectionException} with no detail
52 * message.
53 */
54 public ClosedConnectionException() {
55 }
56
57 /**
58 * Constructs a {@code ClosedConnectionException} with the
59 * specified detail message.
60 *
61 * @param message the detail message pertaining to this exception.
62 */
63 public ClosedConnectionException(String message) {
64 super(message);
65 }
66
67 }
|
29 * This exception may be thrown as a result of an asynchronous
30 * close of a {@link Connection} while an I/O operation is
31 * in progress.
32 *
33 * <p> When a thread is blocked in {@link Connection#readPacket
34 * readPacket} waiting for packet from a target VM the
35 * {@link Connection} may be closed asynchronous by another
36 * thread invokving the {@link Connection#close close} method.
37 * When this arises the thread in readPacket will throw this
38 * exception. Similiarly when a thread is blocked in
39 * {@link Connection#writePacket} the Connection may be closed.
40 * When this occurs the thread in writePacket will throw
41 * this exception.
42 *
43 * @see Connection#readPacket
44 * @see Connection#writePacket
45 *
46 * @since 1.5
47 */
48 public class ClosedConnectionException extends java.io.IOException {
49
50 private static final long serialVersionUID = 3877032124297204774L;
51
52 /**
53 * Constructs a {@code ClosedConnectionException} with no detail
54 * message.
55 */
56 public ClosedConnectionException() {
57 }
58
59 /**
60 * Constructs a {@code ClosedConnectionException} with the
61 * specified detail message.
62 *
63 * @param message the detail message pertaining to this exception.
64 */
65 public ClosedConnectionException(String message) {
66 super(message);
67 }
68 }
|