首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

错误信息打印

2012-12-23 
异常信息打印?try{//调用业务,略}catch (Exception e){System.out.println(抛出异常)if(e instanceof S

异常信息打印

?

try                {                //调用业务,略                }                catch (Exception e)                {                 System.out.println("抛出异常");                 if(e instanceof SystemException)                 {                 SystemException ex =(SystemException)e;                 System.out.println("errorcode>>>>"+ex.getErrorCode());                 }                e.printStackTrace();                }
?

热点排行