Package org.apache.camel.processor.onexception

Examples of org.apache.camel.processor.onexception.MyTechnicalException


                from("direct:start").process(new Processor() {
                    public void process(Exchange exchange) throws Exception {
                        // force some error so Camel will do redelivery
                        if (++counter <= 3) {
                            throw new MyTechnicalException("Forced by unit test");
                        }
                    }
                }).to("mock:result");

            }
View Full Code Here

TOP

Related Classes of org.apache.camel.processor.onexception.MyTechnicalException

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.