Examples of ErrorListener


Examples of anvil.ErrorListener

    _address = address;
  }

  protected ErrorListener getListener()
  {
    ErrorListener listener = _listener;
    if (listener == null) {
      _listener = listener = new ErrorListenerImpl();
    }
    return listener;
  }
View Full Code Here

Examples of anvil.ErrorListener

      out.println("Error");
    }
    out.println("<br/>");
   
    if (exception instanceof ForgingException) {
      ErrorListener listener = ((ForgingException)exception).getErrorListener();
      Enumeration e = listener.getEvents();
      int count = 0;
      while(e.hasMoreElements()) {
        ErrorEvent evt = (ErrorEvent)e.nextElement();
        Location loc = evt.getLocation();
        String url;
View Full Code Here

Examples of anvil.ErrorListener

  /// @throws IOError if an I/O error occured
  public static final Object[] p_parseSAX = { null, "source", "callbacks", "*features", null, "*userdata", null };
  public static final Any parseSAX(Context context, Any source, Any callbacks, Any features, Any userdata)
  {
    SAXHandler handler = null;
    ErrorListener listener = null;
    try {

      InputSource inputSource = createInputSource(context, source);
      if (source == null) {
        throw context.BadParameter("File, InputStream, URL or string expected");
View Full Code Here

Examples of anvil.ErrorListener

  }


  public static void errors(PrintStream out, Exception exception) {
    if (exception instanceof ForgingException) {
      ErrorListener listener = ((ForgingException)exception).getErrorListener();
      Enumeration e = listener.getEvents();
      int count = 0;
      URL last = null;
      URL url;
      while(e.hasMoreElements()) {
        ErrorEvent evt = (ErrorEvent)e.nextElement();
View Full Code Here

Examples of anvil.ErrorListener


  public void errors(PrintStream out, Throwable throwable)
  {
    if (throwable instanceof ForgingException) {
      ErrorListener listener = ((ForgingException)throwable).getErrorListener();
      Enumeration e = listener.getEvents();
      int count = 0;
      URL last = null;
      URL url;
      while(e.hasMoreElements()) {
        ErrorEvent evt = (ErrorEvent)e.nextElement();
View Full Code Here

Examples of anvil.ErrorListener

    out.print("</font>\n" +
      "          </td>\n" +
      "        </tr>");
   
    if (exception instanceof ForgingException) {
      ErrorListener listener = ((ForgingException)exception).getErrorListener();
      Enumeration e = listener.getEvents();
      while(e.hasMoreElements()) {
        ErrorEvent evt = (ErrorEvent)e.nextElement();
        Location loc = evt.getLocation();
       
        out.print(
View Full Code Here

Examples of client.net.sf.saxon.ce.lib.ErrorListener

        }
        String href = hrefVal.getStringValue();

        // suppress all error messages while attempting to fetch the document
        Controller controller = context.getController();
        ErrorListener old = controller.getErrorListener();
        controller.setErrorListener(ErrorDiscarder.THE_INSTANCE);
        boolean b = docAvailable(href, context);
        controller.setErrorListener(old);
        return BooleanValue.get(b);
    }
View Full Code Here

Examples of com.datasift.client.stream.ErrorListener

            });
        }
        System.out.println(datasift.core().balance().sync());
        System.out.println(datasift.core().usage().sync());

        datasift.liveStream().onError(new ErrorListener() {
            public void exceptionCaught(Throwable t) {
                t.printStackTrace();
            }
        });
View Full Code Here

Examples of com.sun.tools.xjc.api.ErrorListener

        Service svc = client.getEndpoint().getService();
        //all SI's should have the same schemas
        Collection<SchemaInfo> schemas = svc.getServiceInfos().get(0).getSchemas();

        SchemaCompiler compiler = XJC.createSchemaCompiler();
        ErrorListener elForRun = new InnerErrorListener(wsdlUrl);
        compiler.setErrorListener(elForRun);
       
        ClassNameAllocator allocator
            = new ClassNameAllocatorImpl();
View Full Code Here

Examples of com.sun.xml.bind.api.ErrorListener

            throw new IOException(Messages.NULL_OUTPUT_RESOLVER.format());

        final SAXParseException[] e = new SAXParseException[1];
        final SAXParseException[] w = new SAXParseException[1];

        createSchemaGenerator().write(outputResolver, new ErrorListener() {
            public void error(SAXParseException exception) {
                e[0] = exception;
            }

            public void fatalError(SAXParseException exception) {
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.