Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 10-20-2005
kwaclaw kwaclaw is offline
Registered User
 
Name: Karl Waclawek
Organization: Toronto Star Newspapers Ltd.
Project: Proof of concept
 
Join Date: Sep 2004
Location: Oshawa, Canada
Posts: 136
Re-throwing exception in Ice for C#

There are many cases in the Ice for C# source code where exceptions are re-thrown using this syntax:
Code:
catch (SomeException ex) {
  throw ex;
}
whereas the usual syntax would be:
Code:
catch (SomeException ex) {
  throw;
}
The difference is that in the first version, the existing stack trace is thrown away and the point of re-throwing is considered the new origin of the exception.

Is this intentional (why?), or just an artifact of porting from Java, where this difference does not exist (AFAIK)?

Karl
__________________
Karl Waclawek
The Toronto Star - http://www.thestar.com
Reply With Quote
  #2 (permalink)  
Old 10-20-2005
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 909
That's an artifact of porting from Java. Thanks for pointing this out! I'll go through and fix as appropriate.

Cheers,

Michi.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Have IceUtil::Exception inherit from std::exception? bpolivka Comments 2 12-13-2006 11:52 AM
Exception throwing question g00fy Help Center 2 06-28-2006 08:40 PM
ObjecrPrxHelperBase.equals throwing ClassCastException tomq Help Center 4 01-06-2006 01:33 PM
Throwing exception from another module beardo Help Center 3 06-01-2005 01:21 PM


All times are GMT -4. The time now is 07:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.