xInfo.add Method [AX 2012]
Adds a string to the Infolog buffer.
public Exception add(
Exception exceptionType,
str string,
[str helpURL,
Object obj,
boolean buildprefix])
Run On
CalledParameters
- exceptionType
- Type: Exception Enumeration
A Exception system enumeration that indicates the kind of exception to add.
- string
- Type: str
The text to display in the Infolog.
- helpURL
- Type: str
The address of a help topic in the AOT.
- obj
- Type: Object Class
An action object extending the SysInfoAction class that enables the user to perform an operation in connection with the error reported on the Infolog.
- buildprefix
- Type: boolean
Optional parameter, that enables you to turn off the generation of prefix information that is used to provide context to Infolog messages.
Return Value
Type: Exception EnumerationAn Exception system enumeration value. For more information, see Exception Handling with try and catch Keywords.
An example value for the helpURL parameter is 'KernDoc:\\\\Functions\\substr'.
This method should not be used directly. Instead, use the infolog.info, infolog.warning, infolog.error, or infolog.checkFailed method instead.
For more information about the exceptionType parameter, see Exception Handling with try and catch Keywords.
Community Additions
ADD
Show: