Examples of onError()


Examples of org.apache.sandesha2.client.SandeshaListener.onError()

               
               
                //reporting the fault
                log.error(axisFault);
                if (faultCallback!=null) {
                  faultCallback.onError(axisFault);
                }
               
              }
             
              //stopping the fault from going further and getting dispatched

Examples of org.apache.sandesha2.client.SandeshaListener.onError()

    if (log.isErrorEnabled())
      log.error(fault);
   
    SandeshaListener listner = (SandeshaListener) rmMsgCtx.getProperty(SandeshaClientConstants.SANDESHA_LISTENER);
    if (listner!=null)
      listner.onError(fault);
   
    // Get the SOAPVersion
    SOAPFactory factory = (SOAPFactory) rmMsgCtx.getSOAPEnvelope().getOMFactory();   
    String SOAPNamespaceValue = factory.getSoapVersionURI();
   

Examples of org.apache.tez.dag.app.rm.TestTaskSchedulerHelpers.TaskSchedulerWithDrainableAppCallback.onError()

    scheduler.onNodesUpdated(mockUpdatedNodes);
    drainableAppCallback.drain();
    verify(mockApp).nodesUpdated(mockUpdatedNodes);

    Exception mockException = mock(Exception.class);
    scheduler.onError(mockException);
    drainableAppCallback.drain();
    verify(mockApp).onError(mockException);

    scheduler.onShutdownRequest();
    drainableAppCallback.drain();

Examples of org.asynchttpclient.providers.netty.ws.NettyWebSocket.onError()

        try {
            WebSocketUpgradeHandler h = WebSocketUpgradeHandler.class.cast(future);

            NettyWebSocket webSocket = NettyWebSocket.class.cast(h.onCompleted());
            if (webSocket != null) {
                webSocket.onError(e.getCause());
                webSocket.close();
            }
        } catch (Throwable t) {
            logger.error("onError", t);
        }

Examples of org.cruxframework.crux.core.client.db.indexeddb.IDBDeleteDBRequest.onError()

        {
          errorHandler.onError(message);
        }
      }
    });
    deleteDatabase.onError(new IDBErrorEvent.Handler()
    {
      @Override
      public void onError(IDBErrorEvent event)
      {
        String message = messages.databaseDeleteError(getName(), event.getName());

Examples of org.cruxframework.crux.core.client.db.indexeddb.IDBOpenDBRequest.onError()

          errorHandler.onError(message);
        }
      }
    });
   
    openDBRequest.onError(new IDBErrorEvent.Handler()
    {
      @Override
      public void onError(IDBErrorEvent event)
      {
        String message = messages.databaseOpenError(getName(), event.getName());

Examples of org.fusesource.restygwt.client.callback.DefaultFilterawareRequestCallback.onError()

        callback.onResponseReceived(null, resp);
       
        // now call the error case
        Exception e = new Exception();
        try{
            callback.onError(null, e);
            fail();
        }
        catch(RuntimeException ee){
            assertSame(e, ee.getCause());
        }

Examples of org.fusesource.restygwt.client.callback.FilterawareRequestCallback.onError()

        callback.onResponseReceived(null, resp);
       
        // now call the error case
        Exception e = new Exception();
        try{
            callback.onError(null, e);
            fail();
        }
        catch(RuntimeException ee){
            assertSame(e, ee.getCause());
        }

Examples of org.glassfish.grizzly.ReadHandler.onError()

        final ReadHandler localHandler = handler;
        if (localHandler != null) {
            handler = null;
            // call in the current thread, because otherwise handler executed
            // in the different thread may deal with recycled Request/Response objects
            localHandler.onError(
                    connection.isOpen()
                    ? new CancellationException()
                    : new EOFException());
        }
    }

Examples of org.glassfish.grizzly.WriteHandler.onError()

                isNonBlockingWriteGuaranteed = true;

                localHandler.onWritePossible();
            } catch (Throwable t) {
                localHandler.onError(t);
            } finally {
                reentrant.dec();
            }
        }
    }
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.