(String[] args)
| 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 | } |
nothing calls this directly
no test coverage detected