Is there a way to handle custom java exception in OSB?

549 Views Asked by At

For example, i created a exception that extends RuntimeException. My exception has a new field called "code". I want to handle this exception in Oracle Service Bus process and retrieve this code to throws another exception with a XML structure that includes the code. Is there a way to do that ?

1

There are 1 best solutions below

2
On

I don't think that you will be able to retrieve just the "code". But certainly you can retrieve the details of the exception which will include your code.

Try it out.