|
|
|
|||||
|
Best practice for exception mapping
Hello
I've got a basic question regarding the usage of exceptions. Probably, it's a little naive anyway. Ok. Here is the situation: We've got a C++ server side application and a C# client side application. For error handling, we defined in slice some exceptions which can be thrown by the server side application and which can be catched by the client side application. We are interested in a simple text based info in these exceptions, so we've added a string property into the slice exception definition accordingly. Now to the question: In the end, we simply would like to put the error-string into a standard C#-base-type-exception. Is the manual wrapping of each proxy-method-call into a try-catch statement the only reasonable way to get the string out of the ice-exception and into a client side exception (re-throwing it in the catch clause), or is there a more elegant way to achieve this? Thanks very much for your professional inputs. Regards hp. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mapping Exception | ganzuoni | Comments | 2 | 02-14-2008 07:39 AM |
| Have IceUtil::Exception inherit from std::exception? | bpolivka | Comments | 2 | 12-13-2006 11:52 AM |
| Server versioning best practice | ctennis | Help Center | 0 | 12-11-2006 12:14 PM |
| Which language mapping(s) do you use? | marc | Comments | 12 | 05-31-2006 07:19 AM |
| C mapping | colding | Comments | 4 | 03-31-2005 05:48 AM |