Examples of throwException()


Examples of java.nio.charset.CoderResult.throwException()

                    o.put(out);
                    out = o;
                    continue;
                }

                cr.throwException();
            }
           
            buf.limit( oldLimit );
            buf.position( end );
            return out.flip().toString();
View Full Code Here

Examples of org.apache.axis2.jaxws.sample.asyncdoclit.client.AsyncPort.throwException()

        Map<String, Object> rc = ((BindingProvider) port).getRequestContext();
        rc.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, CONNECT_EXCEPTION_ENDPOINT);
        rc.put("org.apache.axis2.jaxws.use.async.mep", Boolean.TRUE);

        try {
            String resp = port.throwException(ExceptionTypeEnum.WSE);
            fail("Did not get an exception as expected");
        } catch (Exception ee) {
            assertTrue("ExecutionException.getCause should be an instance of WebServiceException",
                       ee instanceof WebServiceException);
            assertTrue("Didn't get a cause within the WebServiceException",
View Full Code Here

Examples of org.apache.mina.handler.support.IoSessionInputStream.throwException()

        } else if (cause instanceof IOException) {
            e = (IOException) cause;
        }

        if (e != null && in != null) {
            in.throwException(e);
        } else {
            SessionLog.warn(session, "Unexpected exception.", cause);
            session.close();
        }
    }
View Full Code Here

Examples of org.apache.tapestry5.plastic.InstructionBuilder.throwException()

        {
            InstructionBuilder builder = newMethod("setReturnValue", MethodInvocation.class, Object.class);

            if (isVoid)
            {
                builder.throwException(IllegalArgumentException.class, String
                        .format("Method %s of class %s is void, setting a return value is not allowed.", description,
                                className));
            }
            else
            {
View Full Code Here

Examples of org.apache.webbeans.newtests.interceptors.beans.DependentScopedBean.throwException()

        Assert.assertTrue(DependentInterceptor.refCount == 1);
       
        Assert.assertTrue(DependentScopedBean.SAY_HELLO);

        try {
            dbean.throwException();
        }
        catch (Exception e) {
            Assert.assertNotNull(DependentInterceptor.exceptionTarget);
            Assert.assertTrue(DependentInterceptor.exceptionTarget.equals(DependentScopedBean.class));
        }
View Full Code Here

Examples of org.codehaus.xfire.aegis.inheritance.ws1.WS1.throwException()

    {
        WS1 client = (WS1) new XFireProxyFactory(getXFire()).create(service, "xfire.local://WS1");
       
        try
        {
            client.throwException(true);
        }
        catch (WS1ExtendedException ex)
        {
            Object sb = ex.getSimpleBean();
            assertTrue(sb instanceof SimpleBean);
View Full Code Here

Examples of org.codehaus.xfire.aegis.inheritance.ws1.WS1.throwException()

        System.out.println(ws1Proxy.getRootBean("b"));
        System.out.println(ws1Proxy.getRootBean("c"));

        try
        {
            ws1Proxy.throwException(false);
        }
        catch (WS1Exception e)
        {
            System.out.println(e);
        }
View Full Code Here

Examples of org.codehaus.xfire.aegis.inheritance.ws1.WS1.throwException()

            System.out.println();
        }

        try
        {
            ws1Proxy.throwException(true);
        }
        catch (WS1Exception e)
        {
            System.out.println(e);
        }
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.ThreadCursoredList.throwException()

                    try {// Ensure that the statement is closed, but still ensure that the real exception is thrown.
                        closeStatement(statement, session, dbCall);
                    } catch (Exception closeException) {
                    }
                    if (exceptionToThrow == null){
                        results.throwException(DatabaseException.sqlException(exception, dbCall, DatabaseAccessor.this, session, false));
                    }
                    results.throwException(exceptionToThrow);
                } catch (RuntimeException exception) {
                    try {// Ensure that the statement is closed, but still ensure that the real exception is thrown.
                        closeStatement(statement, session, dbCall);
View Full Code Here

Examples of org.foray.fotree.FObj.throwException()

                    final BlockContainer blockContainer
                            = (BlockContainer) descendant;
                    final AbsolutePosition absPosition
                            = blockContainer.traitAbsolutePosition(null);
                    if (absPosition.isAbsolutelyPositioned()) {
                        descendant.throwException("Absolutely-positioned "
                                + "block-container may not descend from "
                                + "fo:title");
                    }
                }
            }
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.