Skip to content

try

The try block wraps exception-throwable code. The control flow is yielded to its catch block when an exception is thrown.

Syntax

try
{
}
catch(  )
{
}

Example Code

try
{
    throw exception;
}
catch( Exception& ex )
{
}