handling System.Data.SqlClient.SqlException inside Ax

I’m using System.Data.SqlClient.SqlCommand inside Ax and I need to handle some exceptions that occur excuting this class.

In c# it would be like that

try{

} catch (System.Data.SqlClient.SqlCommand exception){

}

How can I do it inside Ax?

Thanks in advance