www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Howto "pass" exception.

reply Dawid =?ISO-8859-2?Q?Ci=EA=BFarkiewicz?= <arael fov.pl> writes:
This is a 'concept code':

try{
 //smth
}catch{
 writef("catched\n");
 throw;  // HERE is bug
}

I can't find an answer in the Internet.
-- 
Dawid Ciężarkiewicz | arael
Jun 23 2005
parent Derek Parnell <derek psych.ward> writes:
On Thu, 23 Jun 2005 23:37:35 +0200, Dawid Ciężarkiewicz wrote:

 This is a 'concept code':
 
 try{
  //smth
 }catch{
  writef("catched\n");
  throw;  // HERE is bug
 }
 
 I can't find an answer in the Internet.
try{ //smth }catch (Object e){ writef("catched\n"); throw e; } -- Derek Parnell Melbourne, Australia 24/06/2005 8:02:42 AM
Jun 23 2005