Package org.objectweb.celtix.tools.common

Examples of org.objectweb.celtix.tools.common.ToolException


        Compiler compiler = new Compiler(System.out);

        if (!compiler.internalCompile(args)) {
            Message msg = new Message("FAIL_TO_COMPILE_GENERATE_CODES", LOG);
            throw new ToolException(msg);
        }

    }
View Full Code Here


            output.flush();
            output.close();
            input.close();
        } catch (Exception e) {
            Message msg = new Message("FAIL_TO_COPY_GENERATED_RESOURCE_FILE", LOG);
            throw new ToolException(msg, e);
        }
    }
View Full Code Here

            Class exReturnType = null;
            Method faultInfo = null;
            try {
                faultInfo = exClass.getMethod("getFaultInfo", new Class[0]);
            } catch (SecurityException e) {
                throw new ToolException(e.getMessage(), e);
            } catch (NoSuchMethodException e) {
                throw new ToolException(e.getMessage(), e);
            }

            if (faultInfo != null) {
                WebFault wf = exClass.getAnnotation(WebFault.class);
                exReturnType = faultInfo.getReturnType();
View Full Code Here

        for (Property outElement : outputBlock) {
            if ("return".equals(outElement.elementName().getLocalPart())) {
                if (method.getReturn() != null) {
                    org.objectweb.celtix.common.i18n.Message msg =
                        new org.objectweb.celtix.common.i18n.Message("WRAPPER_STYLE_TWO_RETURN_TYPES", LOG);
                    throw new ToolException(msg);
                }
                method.setReturn(getReturnFromProperty(outElement, outputPart));
                continue;
            }
            boolean sameWrapperChild = false;
View Full Code Here

                writeToIDL(def);
            }
        } catch (ToolException ex) {
            throw ex;     
        } catch (JAXBException ex) {
            throw new ToolException(ex);           
        } catch (Exception ex) {
            throw new ToolException(ex);
        }               
    }
View Full Code Here

    private void writeToWSDL(Definition def) throws ToolException {
        try {
            WSDLUtils.writeWSDL(def, outputdir, wsdlOutput);
        } catch (Throwable t) {
            Message msg = new Message("FAIL_TO_WRITE_WSDL", LOG);
            throw new ToolException(msg, t);
        }
    }
View Full Code Here

    public void process() throws ToolException {
        idl = getBaseFilename(env.get(ToolCorbaConstants.CFG_IDLFILE).toString());
        try {
            parseIDL();
        } catch (Exception e) {
            throw new ToolException(e);
        }
    }
View Full Code Here

            Definition def = visitor.getDefinition();
            Binding[] bindings = visitor.getCorbaBindings();
            generateCORBAService(def, bindings);
            visitor.writeDefinition(outputWriter);
        } catch (Exception ex) {
            throw new ToolException(ex.getMessage(), ex);
        }
    }
View Full Code Here

            buildWSDLDefinition();
        } catch (WSDLException we) {
            org.objectweb.celtix.common.i18n.Message msg =
                    new org.objectweb.celtix.common.i18n.Message(
                    "FAIL_TO_CREATE_WSDL_DEFINITION", LOG);
            throw new ToolException(msg, we);
        }
    }
View Full Code Here

            System.err.println("Error : " + ex.getMessage());
            System.err.println();
            if (isVerboseOn()) {
                ex.printStackTrace();
            }
            throw new ToolException(ex.getMessage(), ex.getCause());
        }      
    }
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.tools.common.ToolException

Copyright © 2018 www.massapicom. 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.