|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error handling - how can I distinguish different error types |
« View previous topic :: View next topic » |
Author |
Message
|
fponcet |
Posted: Fri Dec 30, 2005 9:50 am Post subject: Error handling - how can I distinguish different error types |
|
|
Acolyte
Joined: 20 Oct 2005 Posts: 55
|
Hi,
I need to distinguish these errors in a service call:
1) The application does not answer (timeout)
2) The connector is down
3) The application answers with an error
I put a decision node but I am not able to distinguish the situations (2) and (3). I think they both return a ServiceCall exception.
It is very important because while (2) is a technical problem, (3) is a business error.
Any idea?
[/list][/list] |
|
Back to top |
|
 |
Ratan |
Posted: Tue Jan 03, 2006 9:46 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
If application answers with an error that should be a part of your response BO and is not a Service Call Exception. _________________ -Ratan |
|
Back to top |
|
 |
fponcet |
Posted: Mon Jan 09, 2006 10:47 am Post subject: |
|
|
Acolyte
Joined: 20 Oct 2005 Posts: 55
|
Ok, let's say that the application answers with an Error and that I have an application specific business object that contains the error.
I belive that only the application specific business error would have the error information while the generic business object would not. In that case, the map should fail (throw a MapFailureException), but how will the collaboration distinguish that exception if the connector sends it as a ServiceCallException?
On the other hand, the generic business object could contain the error information too, but would every generic business object contain that information?
Thanks for your help. |
|
Back to top |
|
 |
Ratan |
Posted: Mon Jan 09, 2006 1:18 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
I am not sure that I understand you. For Service call exceptions have a decision node with Exception path to handle them. _________________ -Ratan |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|