Is it supported to use ExceptionMapper in SwitchYard to customize exceptions ?

Solution Verified - Updated -

Issue

  • Users often want to handle the REST faults using ExceptionMapper to customice a java exception into the output JSON messages (for an example). But, it appears that there are problems with the usage of @Provider annotations in SwitchYard projects. Is it supported to use @Provider classes in SwitchYard ?
  • If @Provider is not supported in SwitchYard then what alternate option is available?

Environment

  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.0.0

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