Coding by exception: Adding new code to handle each special case as it is recognized.
靠异常编程(Coding by exception):当有特例被发现时才添加新代码去解决。
Please note that you still need to throw whatever exception is caught by the invoked code (in this case, IOException).
请注意您还是需要抛出由被调用代码捕获的异常(在本例中,为IOException)。
If the content isn't supported, the code throws an exception, which is caught by the try-catch block.
如果内容不受支持,那么代码抛出一个异常,此异常由try - catch块捕捉到。
应用推荐