@Test(expected = RegException.class) public void assertHandleExceptionWithOtherException() { RegExceptionHandler.handleException(new RuntimeException()); }
public static void handleException(final Exception cause) { if (isIgnoredException(cause) || isIgnoredException(cause.getCause())) { log.debug("Elastic job: ignored exception for: {}", cause.getMessage()); } else if (cause instanceof InterruptedException) { Thread.currentThread().interrupt(); } else { throw new RegException(cause); } }
RegExceptionHandler { public static void handleException(final Exception cause) { if (isIgnoredException(cause) || isIgnoredException(cause.getCause())) { log.debug("Elastic job: ignored exception for: {}", cause.getMessage()); } else if (cause instanceof InterruptedException) { Thread.currentThread().interrupt(); } else { throw new RegException(cause); } } }
RegExceptionHandler { public static void handleException(final Exception cause) { if (isIgnoredException(cause) || isIgnoredException(cause.getCause())) { log.debug("Elastic job: ignored exception for: {}", cause.getMessage()); } else if (cause instanceof InterruptedException) { Thread.currentThread().interrupt(); } else { throw new RegException(cause); } }  }
RegExceptionHandler { public static void handleException(final Exception cause) { if (isIgnoredException(cause) || isIgnoredException(cause.getCause())) { log.debug("Elastic job: ignored exception for: {}", cause.getMessage()); } else if (cause instanceof InterruptedException) { Thread.currentThread().interrupt(); } else { throw new RegException(cause); } }  static void handleException(final Exception cause); }
RegExceptionHandler { public static void handleException(final Exception cause) { if (isIgnoredException(cause) || isIgnoredException(cause.getCause())) { log.debug("Elastic job: ignored exception for: {}", cause.getMessage()); } else if (cause instanceof InterruptedException) { Thread.currentThread().interrupt(); } else { throw new RegException(cause); } }  static void handleException(final Exception cause);  }