ErrorInfo.Verbosity([Verbosity]) Method
Version: Available or changed with runtime version 3.0.
Specifies the severity level of the error. This can determine whether the error should be sent to telemetry (which is based on the trace level setting of the server).
Syntax
[Verbosity := ] ErrorInfo.Verbosity([Verbosity: Verbosity])
Note
This method can be invoked using property access syntax.
Parameters
ErrorInfo
Type: ErrorInfo
An instance of the ErrorInfo data type.
[Optional] Verbosity
Type: Verbosity
The verbosity that the error should be sent with.
Return Value
[Optional] Verbosity
Type: Verbosity
The current verbosity of the ErrorInfo.
Example (get the Verbosity property)
procedure myErrorHandlerProc( MyErrorInfo: ErrorInfo )
var
ErrorVerbosity: Verbosity;
begin
ErrorVerbosity := MyErrorInfo.Verbosity();
// do something
end
Example (set the Verbosity property)
var
MyErrorInfo: ErrorInfo
begin
// setup the error info object: Define Message, DetailedMessage etc.
// set MyErrorInfo to be a critical error
MyErrorInfo.Verbosity( Verbosity::Critical );
Error(MyErrorInfo);
end
See Also
ErrorInfo Data Type
AL error handling
Get Started with AL
Developing Extensions
Обратная связь
https://aka.ms/ContentUserFeedback.
Ожидается в ближайшее время: в течение 2024 года мы постепенно откажемся от GitHub Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по