home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Using Visual C++ 4 (Special Edition)
/
Using_Visual_C_4_Special_Edition_QUE_1996.iso
/
ch13
/
rethrow.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-18
|
335b
|
25 lines
// Get needed include files
#include <eh.h>
#include <iostream.h>
void Func1()
{
try {
throw "Something went wrong!";
}
catch (char *) {
cout << "Doing some initial processing...\n";
throw;
}
}
void main()
{
try {
Func1();
}
catch (char*) {
cout << "Doing some secondary processing.\n";
}
}