Description try, catch, and finally keywords to attempt actions that may not succeed, to handle failures and to clean up resources afterwards.
Exceptions
Syntax try
{
//Code Here
}
Catch
{
//Code Here
}
Finally
{
//Code Here
}
Example