The key is to not crash your program or throw an exception that stops processing.
关键是不使程序崩溃或抛出异常而中止处理。
There were two options for what should happen when the retrieval timeout occurs: return null or throw an exception.
对于在检索超时发生时应当发生的事情,有两个选择:返回null或者引发异常。
In this class, you manipulate the server data and return a value to the client (or throw an exception, but let's stay optimistic for the moment).
在这个类中,将操作服务器数据并将值返回给客户机(或者抛出异常,但是此刻先让我们乐观一些认为不会出现这种情况)。
应用推荐