try
{
//funzione da eseguire
}
catch(e)
{

}