AppSourceCop Error AS0058
Only use AssertError in Test Codeunits
Description
Only use AssertError in Test Codeunits.
AssertError must be used only in test codeunits, because it creates its own transaction scope. This can lead to unexpected behaviors when used in production code.
For more information about the usage of AssertError, see:
How to fix this diagnostic?
Error handling in production code must be done using Try Methods.
For more information, see:
See Also
AppSourceCop Analyzer
Get Started with AL
Developing Extensions
CodeCop AA0161
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho