原文地址:http://axdaily.blogspot.com/search?updated-max=2010-01-08T13%3A14%3A00%2B01%3A00&max-results=20
在TTS语句块中我们无法扑捉到异常:
ttsbegin;
try
{
throw error("Exception");
}
catch
{
info("Exception is caught"); // We won't get here
}
ttscommit;
However you can catch exception that was thrown inside tts scope from outside:
try
{
ttsbegin;
throw error("Exception");
ttscommit;
}
catch
{
info("Exception is caught"); // We will get here
}
转载请注明:ww12345678 的部落格 | AX Helper » [转]Microsoft Dynamics AX TTS中的异常处理