异常

来源:互联网 发布:java 计数排序 编辑:程序博客网 时间:2024/05/17 08:01
public Boolean ModifyPassworld(String pid, String oldPwd, String newPwd,
String operator) throws Exception {
com.sinolink.passport.webservice.ServiceResult result;
// private Boolean isok;


try {
result = iPassportService.modifyPasspordPwd(pid, oldPwd, newPwd,
operator);
if(result.getCode().equals("-3011"))
{
throw  new PassportException("发生错误:"+result.getMessage());
}

} catch (RemoteException e) {
throw  new PassportException("发生错误:"+e.getMessage());
}
if (!"".equals(result)) {
if (result.isSuccessed()) {
return true;
} else {
return false;
}
}


return false;
}
原创粉丝点击