blob: e7c9b2d6e2bbd33468c51a5fc72748f4b39301a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package com.keuin.psmb4j.util.error;
import java.io.IOException;
/**
* The socket closed before enough bytes have been read out.
*/
public class SocketClosedException extends IOException {
public SocketClosedException() {
}
public SocketClosedException(long expected, long actual) {
super(String.format("expected %d bytes, EOF after reading %d bytes", expected, actual));
}
}
|