Examples of ErrorHandler


Examples of org.apache.catalina.tribes.ErrorHandler

        } else{
            boolean finished = false;
            final ExtendedRpcCallback excallback = (callback instanceof ExtendedRpcCallback)?((ExtendedRpcCallback)callback) : null;
            boolean asyncReply = ((replyMessageOptions & Channel.SEND_OPTIONS_ASYNCHRONOUS) == Channel.SEND_OPTIONS_ASYNCHRONOUS);
            Serializable reply = callback.replyRequest(rmsg.message,sender);
            ErrorHandler handler = null;
            final Serializable request = msg;
            final Serializable response = reply;
            final Member fsender = sender;
            if (excallback!=null && asyncReply) {
                handler = new ErrorHandler() {
                    @Override
                    public void handleError(ChannelException x, UniqueId id) {
                        excallback.replyFailed(request, response, fsender, x);
                    }
                    @Override
View Full Code Here

Examples of org.apache.felix.ipojo.ErrorHandler

        }
        // Try to get the error handler service
        try {
            ServiceReference ref = m_context.getServiceReference(ErrorHandler.class.getName());
            if (ref != null) {
                ErrorHandler handler = (ErrorHandler) m_context.getService(ref);
                if (level == ERROR) {
                    handler.onError(m_instance, msg, error);
                } else if (level == WARNING) {
                    handler.onWarning(m_instance, msg, error);
                } // The others case are not supported
                m_context.ungetService(ref);
                return;
            } // Else do nothing...
        } catch (IllegalStateException e) {
View Full Code Here

Examples of org.apache.hivemind.ErrorHandler

    public void testLinePreciseErrorReporting() throws Exception
    {
        Resource resource = getResource("missingModuleId.groovy");

        ErrorHandler handler = new DefaultErrorHandler();
        DescriptorParser parser = new DescriptorParser(handler);

        parser.initialize(resource, getClassResolver());

        GroovyCodeSource source = new GroovyCodeSource(resource.getResourceURL());
View Full Code Here

Examples of org.apache.jena.riot.system.ErrorHandler

        raiseException(new RiotParseException(msg, line, col)) ;
    }
   
    protected final void raiseException(RiotParseException ex)
    {
        ErrorHandler errorHandler = profile.getHandler() ;
        if ( errorHandler != null )
            errorHandler.fatal(ex.getOriginalMessage(), ex.getLine(), ex.getCol()) ;
        throw ex ;
    }
View Full Code Here

Examples of org.apache.log.ErrorHandler

        if ( hierarchy == null )
        {
            m_hierarchy = new Hierarchy();
            m_hierarchy.getRootLogger().unsetLogTargets( true );
            final ErrorHandler errorHandler = new OurErrorHandler( getLogger() );
            m_hierarchy.setErrorHandler( errorHandler );
        }
        else
        {
            m_hierarchy = hierarchy;
View Full Code Here

Examples of org.apache.log4j.spi.ErrorHandler

  }

  public void test1() throws Exception {
    DOMConfigurator.configure("input/xml/fallback1.xml");
    Appender primary = root.getAppender("PRIMARY");
    ErrorHandler eh = primary.getErrorHandler();
    assertNotNull(eh);

    common();

    ControlFilter cf = new ControlFilter(new String[]{TEST1_PAT,
View Full Code Here

Examples of org.apache.log4j.spi.ErrorHandler

  }
 
  public void test2() throws Exception {
    PropertyConfigurator.configure("input/fallback1.properties");
    Appender primary = root.getAppender("PRIMARY");
    ErrorHandler eh = primary.getErrorHandler();
    assertNotNull(eh);

    common();

    ControlFilter cf = new ControlFilter(new String[]{TEST1_PAT,
View Full Code Here

Examples of org.apache.sling.engine.servlets.ErrorHandler

    public ServletResolver getServletResolver() {
        return servletResolver;
    }

    public ErrorHandler getErrorHandler() {
        ErrorHandler eh = errorHandler;
        return (eh != null) ? eh : this;
    }
View Full Code Here

Examples of org.apache.uima.aae.error.ErrorHandler

      handleQueueFailure(t);
    }
  }

  private ErrorHandler fetchGetMetaErrorHandler() {
    ErrorHandler handler = null;
    Iterator it = controller.getErrorHandlerChain().iterator();
    // Find the error handler for GetMeta in the Error Handler List provided in the
    // deployment descriptor
    while (it.hasNext()) {
      handler = (ErrorHandler) it.next();
View Full Code Here

Examples of org.apache.woden.ErrorHandler

    throws WSDLException
    {
        ErrorInfo errorInfo =
            new ErrorInfoImpl(errLoc, errorId, message, exception);

        ErrorHandler eh =
            (fErrorHandler != null) ? fErrorHandler : fDefaultErrorHandler;
       
        if(severity == SEVERITY_WARNING) {
            eh.warning(errorInfo);
        }
        else if(severity == SEVERITY_ERROR) {
            eh.error(errorInfo);
        }
        else if(severity == SEVERITY_FATAL_ERROR) {
            eh.fatalError(errorInfo);
           
            // Fatal error strategy is to terminate with a WSDLException.
           
            if(exception == null) {
                throw new WSDLException(WSDLException.INVALID_WSDL,
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.