I have a conexion to api but i want to handled the exception ConnectionClosedException (cause is taking too long if the api is offline or is 504 GetAwayTimeOut Problem, but i get unhadled exception anyways…
try
{
//Connecting to api but it takes too long cause is not available
}
catch (RemObjects.SDK.Exceptions.ConnectionClosedException ex)
{
res.Valida = false;
res.Mensaje = ex.Message;
}
catch (WebException ex)
{
res.Valida = false;
res.Mensaje = ex.Message;
}