使用BitmapFactory.decodeStream函数时,我得到了以下异常
02-22 13:24:34.129: W/System.err(7927): java.io.FileNotFoundException: toto.jpg在catch子句中,e.getMessage()生成
toto.jpg但是如何获取
java.io.FileNotFoundException 我尝试过e.getCause(),但它返回null
发布于 2012-02-22 20:48:42
尝试:
/* ... */
catch(Exception e) {
String name = e.getClass().getName();
}发布于 2013-09-16 15:37:57
尝试:
exception.toString(); 看一下源码,你就会明白
https://stackoverflow.com/questions/9394988
复制相似问题