How to throw custom exception from bean method in camel ?

Solution Unverified - Updated -

Issue

  • How to throw custom exception from bean method in camel ?
  • Got UndeclaredThrowableException when throwing costume Exception
  • I have OSGI service for request authentication I'm calling the service through Camel route by passing parameters required to call service
  • On exception/error it has to throw custome exception which I have created

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.