我在自定义校验类写如下类,只是一个demo,为什么点击校验时候没有报错呢 package com.fr.demo; import com.fr.base.Utils; import com.fr.data.JobValue; import com.fr.data.TotalVerifyJob; import com.fr.data.Verifier; import com.fr.data.Verifier.Status; import com.fr.script.Calculator; import com.fr.file.*; public class UinDataImpVerify extends TotalVerifyJob{ private int type = 0; @Override /* * * */ protected void doTotalJob(Data data, Calculator calc) throws Exception { // TODO Auto-generated method stub //JobValue import_lines; //int row = data.getRowCount(); /*for(int i=0;i<row;i++){ System.out.print(123); }*/ //DatasourceManager.getProviderInstance().getConnection("BI2018").createConnection(); type = 1; } @Override public String getMessage() { // TODO Auto-generated method stub if(type==0){ return "ok"; }else{ return "错了错了"; } } @Override public Status getType() { // TODO Auto-generated method stub return Verifier.Status.parse(type); } public String getJobType() { return "totalVerifyJob"; } /*public static void main(String[] args) { // TODO Auto-generated method stub Data data=null; Calculator calc=null; ImportVerify a = new ImportVerify(); try { a.doTotalJob(data, calc); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }*/ } |