In meinem x ++ Code, den ich habe folgendeDynamics Ax 2009 Ausnahmebehandlung
void run() {
try
{
startLengthyOperation();
this.readFile();
}
catch (Exception::Deadlock)
{
retry;
}
catch (Exception::Error)
{
error(strfmt("An error occured while trying to read the file %1", filename));
}
catch
{
error("An unkown error has occured");
}
endLengthyOperation();
}
ich den endgültige Fang bin schlagen (vor, ich hatte keine Nachricht über Ausnahmen bekommen). Aber ich möchte wissen, was WIRKLICH passiert und die Ausnahme verursacht. Wie kann ich herausfinden, was die Ausnahme ist?