Examples of onError()


Examples of org.apache.axis2.client.async.Callback.onError()

            }

            if (envelope.hasFault()) {
                AxisFault axisFault =
                        Utils.getInboundFaultFromMessageContext(msgContext);
                callback.onError(axisFault);
            } else {
                callback.onComplete(result);
            }
        } catch (Exception e) {
            callback.onError(e);

Examples of org.apache.axis2.client.async.Callback.onError()

                callback.onError(axisFault);
            } else {
                callback.onComplete(result);
            }
        } catch (Exception e) {
            callback.onError(e);
        finally {
            callback.setComplete(true);
        }
    }

Examples of org.apache.axis2.jaxws.client.async.CallbackFuture.onError()

            * to the async thread?  So far, it appears that the exception gets set on the FutureTask
            * Concurrent object, and we never hit this scope.  This means that later, when the client
            * calls future.get(), no exception will be thrown despite what the spec says.  The client can,
            * however, retrieve errors via it's AsyncHandler.
            */
            cbf.onError(af);
        }

        return cbf.getFutureTask();
    }

Examples of org.apache.axis2.jaxws.client.async.CallbackFuture.onError()

            * to the async thread?  So far, it appears that the exception gets set on the FutureTask
            * Concurrent object, and we never hit this scope.  This means that later, when the client
            * calls future.get(), no exception will be thrown despite what the spec says.  The client can,
            * however, retrieve errors via it's AsyncHandler.
            */
            cbf.onError(af);
        }

        return cbf.getFutureTask();
    }

Examples of org.apache.axis2.jaxws.client.async.CallbackFuture.onError()

            * to the async thread?  So far, it appears that the exception gets set on the FutureTask
            * Concurrent object, and we never hit this scope.  This means that later, when the client
            * calls future.get(), no exception will be thrown despite what the spec says.  The client can,
            * however, retrieve errors via it's AsyncHandler.
            */
            cbf.onError(af);
        }

        return cbf.getFutureTask();
    }

Examples of org.apache.axis2.jaxws.client.async.PollingFuture.onError()

             * Save the exception on the callback.  The client will learn about the error when they try to
             * retrieve the async results via the Response.get()"Errors that occur during the invocation
             * are reported via an exception when the client attempts to retrieve the results of the operation."
             * -- JAXWS 4.3.3
             */
            pf.onError(af);
        }

        return resp;
    }

Examples of org.apache.axis2.jaxws.client.async.PollingFuture.onError()

             * Save the exception on the callback.  The client will learn about the error when they try to
             * retrieve the async results via the Response.get()"Errors that occur during the invocation
             * are reported via an exception when the client attempts to retrieve the results of the operation."
             * -- JAXWS 4.3.3
             */
            pf.onError(af);
        }

        return resp;
    }

Examples of org.apache.axis2.jaxws.client.async.PollingFuture.onError()

             * Save the exception on the callback.  The client will learn about the error when they try to
             * retrieve the async results via the Response.get()"Errors that occur during the invocation
             * are reported via an exception when the client attempts to retrieve the results of the operation."
             * -- JAXWS 4.3.3
             */
            pf.onError(af);
        }

        return resp;
    }

Examples of org.apache.felix.ipojo.ErrorHandler.onError()

        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;

Examples of org.apache.felix.ipojo.ErrorHandler.onError()

        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);
            } // Else do nothing...
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.