class ServerException extends Exception { static final char TypeConnectTimeout = 1; static final char TypeInputTimeout = 2; static final char TypeIncorrectResponseCode = 3; static final char TypeSalt = 4; char type = -1; ServerException(String message, char _type) { super(message); type = _type; } char getType() { return type; } }