@Test(expected = JobSystemException.class) public void assertHandleException() { JobErrorHandlerFactory.createHandler("THROW").orElseThrow(() -> new JobConfigurationException("THROW error handler not found.")).handleException("test_job", new RuntimeException("test")); }
@Override public void handleException(final String jobName, final Throwable cause) { throw new JobSystemException(cause); }
ThrowJobErrorHandler implements JobErrorHandler { @Override public void handleException(final String jobName, final Throwable cause) { throw new JobSystemException(cause); } }
ThrowJobErrorHandler implements JobErrorHandler { @Override public void handleException(final String jobName, final Throwable cause) { throw new JobSystemException(cause); }  }
ThrowJobErrorHandler implements JobErrorHandler { @Override public void handleException(final String jobName, final Throwable cause) { throw new JobSystemException(cause); }  @Override void handleException(final String jobName, final Throwable cause); @Override String getType(); }
ThrowJobErrorHandler implements JobErrorHandler { @Override public void handleException(final String jobName, final Throwable cause) { throw new JobSystemException(cause); }  @Override void handleException(final String jobName, final Throwable cause); @Override String getType();  }