Examples of addException()


Examples of com.facebook.swift.generator.template.MethodContext.addException()

            for (final ThriftField field : method.getArguments()) {
                methodContext.addParameter(contextGenerator.fieldFromThrift(field));
            }

            for (final ThriftField field : method.getThrowsFields()) {
                methodContext.addException(contextGenerator.exceptionFromThrift(field));
            }

            if (config.containsTweak(SwiftGeneratorTweak.ADD_THRIFT_EXCEPTION)) {
                methodContext.addException(THRIFT_EXCEPTION_CONTEXT);
            }
View Full Code Here

Examples of com.google.java.contract.core.model.MethodModel.addException()

    scan(e.getParameters(), exec);
    exec.setVariadic(e.isVarArgs());

    /* Add throws list. */
    for (TypeMirror tt : e.getThrownTypes()) {
      exec.addException(utils.getTypeNameForType(tt));
    }

    /* Add annotations. */
    scanAnnotations(e, true, type.getName(), exec);

View Full Code Here

Examples of com.googlecode.jslint4java.JSFunction.Builder.addException()

            }
            for (String var : Util.listValueOfType("var", String.class, scope)) {
                b.addVar(var);
            }
            for (String exception : Util.listValueOfType("exception", String.class, scope)) {
                b.addException(exception);
            }
            for (String outer : Util.listValueOfType("outer", String.class, scope)) {
                b.addOuter(outer);
            }
            for (String unused : Util.listValueOfType("unused", String.class, scope)) {
View Full Code Here

Examples of com.martiansoftware.jsap.JSAPResult.addException()

        result = super.parse(combined_commands);
      }
      catch (IOException e)
      {
        result.addException("config-file", e);
      }
    }

    if (result.contains("help") && result.getBoolean("help"))
    {
View Full Code Here

Examples of com.sun.enterprise.admin.event.AdminEventResult.addException()

    }

    protected void registerException(BaseDeployEvent event, String msg) {
        AdminEventResult result = AdminEventResult.getAdminEventResult(event);
        result.setResultCode(AdminEventResult.SUCCESS);
        result.addException(event.getEffectiveDestination(),
                            new AdminEventListenerException(msg));
    }

    // creating JSR77 root mbean for the application so the root mbean
    // would also be available for disabled application
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.MethodGen.addException()

    }
    else {
      mgen = createAbstractMethod(className,mdef, access_flags, return_type,arg_types);
    }
    for(TypeName ex: mdef.throwList) {
      mgen.addException(ex.toString()) ;
    }
    mgen.setMaxStack() ;
    mgen.setMaxLocals() ;
    Method method = mgen.getMethod();
    return method;
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator.addException()

                                com.sun.org.apache.bcel.internal.generic.Type.VOID,
                                argTypes, argNames,
                                "buildKeys", _className, il,
                                classGen.getConstantPool());

        buildKeys.addException("com.sun.org.apache.xalan.internal.xsltc.TransletException");

        final Enumeration elements = elements();
        while (elements.hasMoreElements()) {
            // xsl:key
            final Object element = elements.nextElement();
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.operations.tryop.TryProcess.addException()

        errorProperties.put(INT_PROPERTY_NAME, INT_PROPERTY_VALUE);

        TryProcess process = new TryProcess(null);
        XMLPipelineException e = new XMLPipelineException(ERROR_MESSAGE, null);
        e.initErrorInfo(ERROR_SOURCEID, ERROR_CODEURI, ERROR_CODENAME, errorProperties);
        process.addException(e);
        context.pushObject(process, false);
    }

    protected void tearDown() throws Exception {
        context.popObject();
View Full Code Here

Examples of nexj.core.integration.CompoundIntegrationException.addException()

               if (e == null)
               {
                  e = new CompoundIntegrationException("err.rpc.mailUnhandled");
               }

               e.addException(t);
            }
         }

         if (e != null)
         {
View Full Code Here

Examples of nexj.core.meta.MetadataCompoundValidationException.addException()

         if (e == null)
         {
            e = new MetadataCompoundValidationException();
         }

         e.addException(
            new MetadataException("err.meta.argLookup", new Object[]{itr.next(), event}));
      }

      if (e != null)
      {
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.