ITeye博客

异常信息打印

lversam · 2012-04-14 11:25 · work block · 编程语言 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。