/** * add an @throws tag to the javadoc */ public JCommentPart addThrows( Class<? extends Throwable> exception ) { return addThrows( owner.ref(exception) ); }
/** * add an @throws tag to the javadoc */ public JCommentPart addThrows( Class<? extends Throwable> exception ) { return addThrows( owner.ref(exception) ); }
/** * add an @throws tag to the javadoc */ public JCommentPart addThrows( Class<? extends Throwable> exception ) { return addThrows( owner.ref(exception) ); }
/** * add an @throws tag to the javadoc */ public JCommentPart addThrows( Class exception ) { return addThrows( owner.ref(exception) ); }
/** * add an @throws tag to the javadoc */ public JCommentPart addThrows( Class<? extends Throwable> exception ) { return addThrows( owner.ref(exception) ); }
public JCommentPart addThrows(Class exception) { return getDelegate().addThrows(exception); }
public JCommentPart addThrows(JClass exception) { return getDelegate().addThrows(exception); }
protected void generateFaults(GenerationContext context, OperationInfo op, JMethod method) throws GenerationException { for (Iterator itr = op.getFaults().iterator(); itr.hasNext();) { FaultInfo faultInfo = (FaultInfo) itr.next(); //List messageParts = faultInfo.getMessageParts(); /*if (messageParts.size() > 1) { throw new GenerationException("Operation " + op.getName() + " has a fault " + faultInfo.getName() + " with multiple parts. This is not supported at this time."); }*/ JClass exCls = getExceptionClass(context, faultInfo); if (exCls == null) throw new GenerationException("Could not find generated " + "fault class for " + faultInfo.getName() + "!"); if( faultInfo.getDocumentation()!= null){ JCommentPart commentPart = method.javadoc().addThrows(exCls); commentPart.add(faultInfo.getDocumentation()); } method._throws(exCls); } }
getter.javadoc().append("Gets the value of the " + property + " property.").addThrows(exceptionClazz).append("Always."); getter.annotate(Override.class); getter.body()._throw(JExpr._new(exceptionClazz)); setter.javadoc().append("Sets the value of the " + property + " property.").addThrows(exceptionClazz).append("Always."); setter.annotate(Override.class); setter.param(nameClazz, property);
.append( "Create an instance of " ) .append( cc.ref ) .addThrows(JAXBException.class).append("if an error occurs");
.append( "Create an instance of " ) .append( cc.ref ) .addThrows(JAXBException.class).append("if an error occurs");
.append( "Create an instance of " ) .append( cc.ref ) .addThrows(JAXBException.class).append("if an error occurs");
.append( "Create an instance of " ) .append( cc.ref ) .addThrows(JAXBException.class).append("if an error occurs");
.append( "Create an instance of " ) .append( cc.ref ) .addThrows(JAXBException.class).append("if an error occurs");
for (Fault fault : operation.getFaultsSet()) { m._throws(fault.getExceptionClass()); methodDoc.addThrows(fault.getExceptionClass()); wsdlOp.putFault(fault.getWsdlFaultName(), fault.getExceptionClass());
for (Fault fault : operation.getFaultsSet()) { m._throws(fault.getExceptionClass()); methodDoc.addThrows(fault.getExceptionClass()); wsdlOp.putFault(fault.getWsdlFaultName(), fault.getExceptionClass());
for (Fault fault : operation.getFaultsSet()) { m._throws(fault.getExceptionClass()); methodDoc.addThrows(fault.getExceptionClass()); wsdlOp.putFault(fault.getWsdlFaultName(), fault.getExceptionClass());
for(Fault fault:operation.getFaultsSet()){ m._throws(fault.getExceptionClass()); methodDoc.addThrows(fault.getExceptionClass()); wsdlOp.putFault(fault.getWsdlFaultName(), fault.getExceptionClass());
for(Fault fault:operation.getFaultsSet()){ m._throws(fault.getExceptionClass()); methodDoc.addThrows(fault.getExceptionClass()); wsdlOp.putFault(fault.getWsdlFaultName(), fault.getExceptionClass());
for(Fault fault:operation.getFaultsSet()){ m._throws(fault.getExceptionClass()); methodDoc.addThrows(fault.getExceptionClass()); wsdlOp.putFault(fault.getWsdlFaultName(), fault.getExceptionClass());