在我的x++代码中,我有以下内容。
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();
}
我遇到了最终的异常(之前没有收到任何异常消息)。但是我想知道真正发生了什么并导致了异常。我该如何找出异常的原因?