This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Exception Handling
- From: "Ryan Cuprak"<cuprakr at earthlink dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 16 Jan 2003 09:14:49 -0800
- Subject: Exception Handling
- Reply-to: rcuprak at acm dot org
Hello,
Is it safe to throw an exception as such:
throw new MyException ( "method","class","message);
and then catch it as:
try {
}
catch ( MyException *e ) {
//-- do something
delete e;
}
I am just looking for some guidelines on exceptions. In doing google searches
for info, I came across an email stating that the implementation of exceptions
varies by compiler in that some runtime systems do a binary copy of the
exception and then pass it to the catch etc.
Thanks,
Ryan