在我的X ++代码,我有以下动态2009年斧,异常处理
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();
}
我打最终赶上(之前,我没有得到任何关于异常的消息)。但我想知道真正发生了什么并导致异常。我怎样才能找出例外是什么?