MCPcopy Create free account
hub / github.com/alibaba/DataX / main

Method main

core/src/main/java/com/alibaba/datax/core/Engine.java:198–218  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

196 }
197
198 public static void main(String[] args) throws Exception {
199 int exitCode = 0;
200 try {
201 Engine.entry(args);
202 } catch (Throwable e) {
203 exitCode = 1;
204 LOG.error("\n\n经DataX智能分析,该任务最可能的错误原因是:\n" + ExceptionTracker.trace(e));
205
206 if (e instanceof DataXException) {
207 DataXException tempException = (DataXException) e;
208 ErrorCode errorCode = tempException.getErrorCode();
209 if (errorCode instanceof FrameworkErrorCode) {
210 FrameworkErrorCode tempErrorCode = (FrameworkErrorCode) errorCode;
211 exitCode = tempErrorCode.toExitValue();
212 }
213 }
214
215 System.exit(exitCode);
216 }
217 System.exit(exitCode);
218 }
219
220}

Callers

nothing calls this directly

Calls 4

entryMethod · 0.95
traceMethod · 0.95
getErrorCodeMethod · 0.95
toExitValueMethod · 0.95

Tested by

no test coverage detected