如何关闭thrift java打印的异常

如题所述

第1个回答  2017-03-10
用try catch语句实现: try { //业务代码 } catch (Exception e) { e.printStackTrace(); //打印异常 throw new Exception("Write InputStream Error" + e.toString()); //抛给客户端的异常 }
相似回答
大家正在搜