Static Analysis Problem Type Reference

Unhandled exception

An exception was thrown for which there appears to be no handler.

Throwing an uncaught exception can cause the program to terminate.

ID

Code Location

Description

1

Exception throw

This shows where the exception was thrown

Example

          
int main (int argc, char **argv)
{
    // thrown exception has no handler
    if (argc > 3) throw ("Oops");

    return 0;
}