it seems dividing by zero, gets caught in the catch(Exception::CLRError).
So when to use catch(Exception::Error) in this case?
public static void main(Args _args)
{
//System.Exception ex;
try
{
int a = 1 / 0;
}
catch (Exception::CLRError)
{
error("error");
}
//catch (ex)
//{
// error("error");
//}
catch (Exception::Error)
{
error("error");
}
}
and what's the difference between catch (Exception::CLRError) and catch (ex)??


Report
All responses (
Answers (