Examples of SeekBookError


Examples of org.talend.services.demos.library._1_0.SeekBookError

        List<String> authorsLastNames = body.getAuthorLastName();
        if (authorsLastNames != null && authorsLastNames.size() > 0) {
            String authorsLastName = authorsLastNames.get(0);
            if (authorsLastName != null && authorsLastName.length() > 0 &&
                    !"Icebear".equalsIgnoreCase(authorsLastName)) {
                SeekBookError e = prepareException("No book available from author " + authorsLastName);

                System.out.println("No book available from author " +  authorsLastName);
                System.out.println("\nSending business fault (SeekBook error) with parameters:");

                Utils.showSeekBookError(e);
View Full Code Here

Examples of org.talend.services.demos.library._1_0.SeekBookError

        if (authorsLastNames != null && authorsLastNames.size() > 0) {
            String authorsLastName = authorsLastNames.get(0);
            if (authorsLastName != null && authorsLastName.length() > 0
                    && !"Stripycat".equalsIgnoreCase(authorsLastName)) {

                SeekBookError e = prepareException("No book available from author "
                        + authorsLastName);

                System.out.println("No book available from author "
                        + authorsLastName);
                System.out
                        .println("\nSending business fault (SeekBook error) with parameters:");

                Utils.showSeekBookError(e);

                LibraryConsumer libraryConsumer = ctx.createCallbackProxy(LibraryConsumer.class);
                libraryConsumer.seekBookInBasementFault(e.getFaultInfo());

                if (callContextKey != null) {
                    /**** Removing Call Context *** */
                    System.out.println("Removing CallContext:");
                    ccs.removeStoredObject(callContextKey);
View Full Code Here

Examples of org.talend.services.demos.library._1_0.SeekBookError

        exception.setOperation("seekBook");
        exception.setServiceName("LibraryService");
        exception.setExceptionText(message);
        ExceptionFrame frame = new ExceptionFrame();
        frame.getException().add(exception);
        SeekBookError e = new SeekBookError("Book not found", frame);
        return e;
    }
View Full Code Here

Examples of org.talend.services.test.library._1_0.SeekBookError

        List<String> authorsLastNames = body.getAuthorLastName();
        if (authorsLastNames != null && authorsLastNames.size() > 0) {
            String authorsLastName = authorsLastNames.get(0);
            if (authorsLastName != null && authorsLastName.length() > 0 &&
                    !"Icebear".equalsIgnoreCase(authorsLastName)) {
                SeekBookError e = prepareException("No book available from author " + authorsLastName);

                System.out.println("No book available from author " +  authorsLastName);
                System.out.println("\nSending business fault (SeekBook error) with parameters:");

                throw e;
View Full Code Here

Examples of org.talend.services.test.library._1_0.SeekBookError

        exception.setOperation("seekBook");
        exception.setServiceName("LibraryService");
        exception.setExceptionText(message);
        ExceptionFrame frame = new ExceptionFrame();
        frame.getException().add(exception);
        SeekBookError e = new SeekBookError("Book not found", frame);
        return e;
    }
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.