How to catch sun.awt.image.PNGImageDecoder$PNGException?

前端 未结 3 621
别那么骄傲
别那么骄傲 2021-01-25 00:04

How to catch the following exception that is printed to the error console when trying to load a corrupted PNG file:

sun.awt.image.PNGImageDecoder$PNGException: i         


        
3条回答
  •  孤街浪徒
    2021-01-25 00:39

    This Exception is thrown from a separate thread, not the main thread. Actually your application execution completes successfully.

提交回复
热议问题