Пример #1
0
  /**
   * For a given Exception, take some remedial, or investigative action. <b>Note</b>: the Exception
   * should still be alive when this call is completed i.e.<br>
   *
   * <pre>
   * try {
   * // Some error code here
   * } catch (MyHostException e) {
   *     System.out.println("Error:" + e.getMessage());
   *     myHostErrorHandler.handleHostException(e);
   *     e.printStackTrace();
   *     throw e;
   * }
   * </pre>
   */
  public void handleHostException(Object ex) {

    joltErrorChain.sendToChain(ex);
  }
Пример #2
0
 public CTGSysHandler() {
   joltErrorChain = new MonitorCTGExceptions();
   joltErrorChain.addChain(new HandleCTGShutdown());
 }