API契约方式需要定义抛出异常的客户机和捕捉异常的装置都需要知道的类。
The API-contract way is to define a class known to both the throwing client and the catching harness.
在之前版本的。NET里,捕捉异常和抛出异常的线程一般是相同的。
In previous versions of.net exceptions were expected to be caught on the same thread that they were thrown on.
方法捕捉其他异常(比如MalformedURLException和IOException)并抛出定制的异常,让GWT客户机可以捕捉到它。
The method will catch other exceptions such as MalformedURLException and IOException and throw the custom exception so that it can be caught by the GWT client.
应用推荐