A
A
Hi,
I'm having some difficulty understanding the semantics of the rethrow
keyword. Consider the following code:
int main(){
try{
...
}
catch(SomeException &SE){
...
}
catch(...){
rethrow;
}
return 0;
}
What is the point of rethrowing the exception caught at catch(...)? Won't
this result in a endless cycle effect?
Regards,
A
I'm having some difficulty understanding the semantics of the rethrow
keyword. Consider the following code:
int main(){
try{
...
}
catch(SomeException &SE){
...
}
catch(...){
rethrow;
}
return 0;
}
What is the point of rethrowing the exception caught at catch(...)? Won't
this result in a endless cycle effect?
Regards,
A