Trans.getError()返回的 int 型,没有办法获得Trans的 Error 信息
if (trans.getErrors() > 0) {
System.out.println("There are errors during transformation exception!(传输过程中发生异常)");
String[] errMsgList = KettleLogStore.getAppender().getBuffer(trans.getLogChannelId(), false).toString().split("\n\r\n");
String errMsg=errMsgList[0];
System.out.println(errMsg);
}