ErrorInfo.DetailedMessage([Text]) Method
Version: Available or changed with runtime version 8.0.
Specifies a detailed error message.
Syntax
[DetailedMessage := ] ErrorInfo.DetailedMessage([DetailedMessage: Text])
Note
This method can be invoked using property access syntax.
Parameters
ErrorInfo
Type: ErrorInfo
An instance of the ErrorInfo data type.
[Optional] DetailedMessage
Type: Text
The detailed message of the ErrorInfo
Return Value
[Optional] DetailedMessage
Type: Text
The current detailed message of the ErrorInfo.
Remarks
The detailed message isn't shown to the end user, but is included in the Copy details part of the error dialog. For more information about the Copy details part of the error dialog, see Understanding the error dialog.
You aren't required to set a detailed message for error dialogs. But it might be helpful to add more technical information here to help a person who needs to troubleshoot the issue.
Example
var
dimension: Text[30];
vendorCode: Text[30];
MyErrorInfo: ErrorInfo;
begin
// set up the error info object
MyErrorInfo.Message(
StrSubstNo('The dimension value must be blank for the dimension %1 for Vendor %2', dimension, vendorCode)
);
MyErrorInfo.DetailedMessage('Add some text to help the person troubleshooting this error.');
// maybe set more properties
Error(MyErrorInfo);
end
See Also
ErrorInfo Data Type
Understanding the error dialog
Error handling
Get Started with AL
Developing Extensions
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示