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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content