最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

[转]Microsoft Dynamics AX TTS中的异常处理

Uncategorized William 2102浏览 0评论

原文地址: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中的异常处理

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址