www.digitalmars.com         C & C++   DMDScript  

c++ - Exception Handling

reply "Pramod Subramanyan" <pramod_sx rediffmail.com> writes:
How do you turn on exception handling by default ?

Can you throw just about anything in C++ ? Is there any Java like Exception
object that you subclass to create your own exceptions ? Or do you just
throw the first that catches your fancy ?
Apr 22 2001
parent Jan Knepper <jan smartsoft.cc> writes:
Pramod Subramanyan wrote:

 How do you turn on exception handling by default ?

Throw the -Ae compiler flag.
 Can you throw just about anything in C++ ?

Yeah! <g>
 Is there any Java like Exception object that you subclass to create your own
 exceptions ? Or do you just throw the first that catches your fancy ?

You can build that yourself if you want to... Jan
Apr 22 2001