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
Related information
ErrorInfo Data Type
AL error handling
Get Started with AL
Developing Extensions