Skip to content

catch

The catch keyword is used to catch exceptions from subroutines.

Syntax

catch ( ExceptionObject& except )
{
}

Example Code

try
{
    fuBar();
}
catch ( ExceptionObject& except )
{
    // handle exceptions...
}