uncaught_exception

bool uncaught_exception();

The function returns true only if a thrown exception is being currently processed.