init()初始化,run()里面调用我的方法,需要处理异常,但是不允许外抛异常,请问有什么更好的解决方法public void init(String path, String customeremail, String name,
String username, String password) {
this.path = path;
this.customeremail = customeremail;
this.name = name;
this.username = username;
this.password = password;
} public void run() {
try {
SystemtoCustomer(path, customeremail, name, username, password);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}