Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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 ?

share|improve this question
add comment

1 Answer 1

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.

share|improve this answer
    
OK, in fault i have the error details. But it has a large message inside the element <reason>. An interesting element that i found is <java-exception>, it contains a identifier to the object reference. There are any way to retrieve that ? –  Sandro Simas Jul 22 '13 at 15:30
    
Where did you find the element <java-exception>? As per the Message Context Schema, I do not see this element defined. –  palakmathur Aug 26 '13 at 5:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.