Examples of handleError()


Examples of net.sourceforge.argparse4j.inf.ArgumentParser.handleError()

            if (payload != null) {
                System.out.println(payload); // TODO: do we want this newline?  may screw up binary data... but do we want to use Strings then?
            }

        } catch (ArgumentParserException e) {
            parser.handleError(e);
            System.exit(-1);
        } catch (IOException e) {
            System.err.println("Could not handle input data: " + e.getMessage());
            e.printStackTrace();
            System.exit(-2);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.plugins.dbcopy.event.CopyTableListener.handleError()

        ErrorEvent event = new ErrorEvent(prov, type);
        event.setException(e);
        Iterator<CopyTableListener> i = listeners.iterator();
        while (i.hasNext()) {
            CopyTableListener listener = i.next();
            listener.handleError(event);
        }       
    }
   
    private void sendRecordEvent(int number, int count) {
        RecordEvent event = new RecordEvent(prov, number, count);
View Full Code Here

Examples of net.sourceforge.urlrewriter4j.core.errors.DefaultErrorHandler.handleError()

   */
  @Test
  public void handleError() throws Exception {
    DefaultErrorHandler oHandler = new DefaultErrorHandler("/error.html");
    MockContextFacade oContext = new MockContextFacade("http://test.com/doesnotmatter.html");
    oHandler.handleError(oContext);
    oContext.expectLocation("/error.html");
    oContext.expectRedirectLocation(null);
  }

}
View Full Code Here

Examples of org.apache.sling.engine.servlets.ErrorHandler.handleError()

    public void sendError(int status, String message) throws IOException {
        checkCommitted();

        this.status = status;
        ErrorHandler eh = getRequestData().getSlingMainServlet().getErrorHandler();
        eh.handleError(status, message, requestData.getSlingRequest(), this);
    }

    @Override
    public void setStatus(int status, String message) {
        checkCommitted();
View Full Code Here

Examples of org.apache.sling.engine.servlets.ErrorHandler.handleError()

    public void sendError(int status, String message) throws IOException {
        checkCommitted();

        this.status = status;
        ErrorHandler eh = getRequestData().getSlingMainServlet().getErrorHandler();
        eh.handleError(status, message, requestData.getSlingRequest(), this);
    }

    @Override
    public void setStatus(int status, String message) {
        checkCommitted();
View Full Code Here

Examples of org.apache.uima.aae.delegate.Delegate.handleError()

      errorContext.add(AsynchAEMessage.Command, AsynchAEMessage.Process);
      errorContext.add(AsynchAEMessage.CasReference, entry.getCasReferenceId());
      errorContext.add(AsynchAEMessage.Endpoint, endpoint);
      errorContext.handleSilently(true); // dont dump exception to the log
      // Failure on send treat as timeout
      delegate.handleError(new MessageTimeoutException(), errorContext);

    }
  }
}
View Full Code Here

Examples of org.apache.uima.aae.delegate.Delegate.handleError()

        errorContext.add(AsynchAEMessage.Command, AsynchAEMessage.Process);
        errorContext.add(AsynchAEMessage.CasReference, entry.getCasReferenceId());
        errorContext.add(AsynchAEMessage.Endpoint, endpoint);
        errorContext.handleSilently(true); // dont dump exception to the log
        // Failure on send treat as timeout
        delegate.handleError(new MessageTimeoutException(), errorContext);
      }

    }
  }
}
View Full Code Here

Examples of org.apache.uima.aae.delegate.Delegate.handleError()

        errorContext.add(AsynchAEMessage.Command, AsynchAEMessage.Process);
        errorContext.add(AsynchAEMessage.CasReference, entry.getCasReferenceId());
        errorContext.add(AsynchAEMessage.Endpoint, endpoint);
        errorContext.handleSilently(true); // dont dump exception to the log
        // Failure on send treat as timeout
        delegate.handleError(new MessageTimeoutException(), errorContext);
      }

    }
  }
}
View Full Code Here

Examples of org.apache.uima.aae.delegate.Delegate.handleError()

        errorContext.add(AsynchAEMessage.Command, AsynchAEMessage.Process);
        errorContext.add(AsynchAEMessage.CasReference, entry.getCasReferenceId());
        errorContext.add(AsynchAEMessage.Endpoint, endpoint);
        errorContext.handleSilently(true); // dont dump exception to the log
        // Failure on send treat as timeout
        delegate.handleError(new MessageTimeoutException(), errorContext);
      }

    }
  }
}
View Full Code Here

Examples of org.apache.uima.aae.delegate.Delegate.handleError()

        errorContext.add(AsynchAEMessage.Command, AsynchAEMessage.Process);
        errorContext.add(AsynchAEMessage.CasReference, entry.getCasReferenceId());
        errorContext.add(AsynchAEMessage.Endpoint, endpoint);
        errorContext.handleSilently(true); // dont dump exception to the log
        // Failure on send treat as timeout
        delegate.handleError(new MessageTimeoutException(), errorContext);
      }

    }
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.