try-catch is a syntactic construct for catching exceptions raised by a code section
The try-catch construct for exception handling is used by a wide group of languages, like C#, C++, Matlab, Python, Java, and JavaScript. An example of this construct is shown below.
try
{
Some code
}
catch(exception e)
{
Handle exception
}
References: