|
From: <Mat...@Ve...> - 2005-02-23 15:50:17
|
The compiler is confused because you never defined that exception class.
The base exception classes in GNU compilers are in the header <stdexcept>.
Here are the ones available, in an inheritance hierarchy (all are in std
namespace of course):
Parent: exception
Middle Level: logic_error runtime_error
Children: domain_error range_error
length_error overflow_error
invalid_argument underflow_error
out_of_range
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of
A_B...@gm...
Sent: Tuesday, February 22, 2005 6:44 PM
To: dev...@li...
Subject: [Dev-C++] Exceptions
Hi,
in standart C/C++ I learned this syntax:
try{
// some code
}catch(CFileException* e){
// some code
e->Delete();
}
but Dev says "syntax error before '*' token" !!!
Well, I think CFileException was not declared !?!?!
What is the correct use of "catch" with Dev-C++ ????
thx, Acki
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure. If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof. Thank you.
|