static Message readRequest(ServerConnection servConn) {
Message requestMsg = null;
try {
requestMsg = servConn.getRequestMessage();
requestMsg.receive(servConn, MAX_INCOMING_DATA, INCOMING_DATA_LIMITER, INCOMING_MSG_LIMITER);
return requestMsg;
} catch (EOFException eof) {
handleEOFException(null, servConn, eof);
} catch (InterruptedIOException e) {
handleInterruptedIOException(servConn, e);
} catch (IOException e) {
handleIOException(null, servConn, e);
} catch (DistributedSystemDisconnectedException e) {
handleShutdownException(null, servConn, e);
} catch (VirtualMachineError err) {
SystemFailure.initiateFailure(err);
throw err;
} catch (Throwable e) {
SystemFailure.checkFailure();
handleThrowable(null, servConn, e);
}
return requestMsg;
}