Examples of error()


Examples of org.codehaus.plexus.logging.Logger.error()

        String text = new String( "Text" );
        Throwable e = new RuntimeException();

        log.debug( text );
        log.debug( text, e );
        log.error( text );
        log.error( text, e );
        log.warn( text );
        log.warn( text, e );
        log.info( text );
        log.info( text, e );
View Full Code Here

Examples of org.codehaus.plexus.logging.console.ConsoleLogger.error()

    {
        File zipFile = new File( file );
        if ( !zipFile.exists() )
        {
            Logger logger = new ConsoleLogger( Logger.LEVEL_INFO, "console" );
            logger.error( "JarArchive skipping non-existing file: " + zipFile.getAbsolutePath() );
        }
        else if ( zipFile.isDirectory() )
        {
            Logger logger = new ConsoleLogger( Logger.LEVEL_INFO, "console" );
            logger.info( "JarArchiver skipping indexJar " + zipFile + " because it is not a jar" );
View Full Code Here

Examples of org.eclipse.jetty.server.Dispatcher.error()

                    Dispatcher dispatcher = (Dispatcher) request.getServletContext().getRequestDispatcher(error_page);
                    try
                    {
                        if(dispatcher!=null)
                        {
                            dispatcher.error(request, response);
                            return;
                        }
                        LOG.warn("No error page "+error_page);
                    }
                    catch (ServletException e)
View Full Code Here

Examples of org.eclipse.jst.jsf.common.ui.internal.logging.Logger.error()

        Node beginNode = doc.getFirstChild();
        Node templateNode = beginNode.cloneNode(true);//model.getDocument().importNode(beginNode, true);
        Node[] templateNodes = applyPrefixes(model, templateNode.getChildNodes(), model.getDocument());
        return templateNodes;
      } catch (ParserConfigurationException e) {
          logger.error(e);
      } catch (SAXException e) {
                logger.error(e);
      } catch (IOException e) {
                logger.error(e);
      } catch (Exception e){
View Full Code Here

Examples of org.elasticsearch.common.logging.ESLogger.error()

            if (bootstrap.node != null) {
                logger = Loggers.getLogger(Bootstrap.class, bootstrap.node.settings().get("name"));
            }
            String errorMessage = buildErrorMessage(stage, e);
            if (foreground) {
                logger.error(errorMessage);
            } else {
                System.err.println(errorMessage);
                System.err.flush();
            }
            Loggers.disableConsoleLogging();
View Full Code Here

Examples of org.exist.backup.restore.listener.DefaultRestoreListener.error()

        try {
            restore.restore(listener, username, password, dbaPassword, f, uri);
        } catch(final FileNotFoundException fnfe) {
            listener.error(fnfe.getMessage());
        } catch(final IOException ioe) {
            listener.error(ioe.getMessage());
        } catch(final SAXException saxe) {
            listener.error(saxe.getMessage());
        } catch(final XMLDBException xmldbe) {
            listener.error(xmldbe.getMessage());
        } catch(final ParserConfigurationException pce) {
View Full Code Here

Examples of org.exist.backup.restore.listener.RestoreListener.error()

        final Restore restore = new Restore();

        try {
            restore.restore(listener, username, password, dbaPassword, f, uri);
        } catch(final FileNotFoundException fnfe) {
            listener.error(fnfe.getMessage());
        } catch(final IOException ioe) {
            listener.error(ioe.getMessage());
        } catch(final SAXException saxe) {
            listener.error(saxe.getMessage());
        } catch(final XMLDBException xmldbe) {
View Full Code Here

Examples of org.fao.geonet.Logger.error()

                if (getParams().oneRunOnly) {
                    stop();
                }
            } catch (InvalidParameterValueEx e) {
                logger.error("The harvester " + this.getParams().name + "["
                             + this.getType()
                             + "] didn't accept some of the parameters sent.");

                errors.add(new HarvestError(e, logger));
                error = e;
View Full Code Here

Examples of org.gatein.common.logging.Logger.error()

            try {
                GroovyScriptBuilder compiler = new GroovyScriptBuilder(templateId, templateName, templateText);
                this.script = compiler.build();
            } catch (TemplateCompilationException ex) {
                Logger log = LoggerFactory.getLogger(GroovyTemplate.class);
                log.error(ex.getMessage(), ex);
            }
        }
        return this.script;
    }
}
View Full Code Here

Examples of org.h2.message.Trace.error()

                return;
            }
            Trace trace = getTrace();
            try {
                if (!isClosed()) {
                    trace.error("Pooled connection not closed", openStackTrace);
                    JdbcXAConnection.this.close();
                }
            } catch (SQLException e) {
                trace.debug("finalize", e);
            }
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.