AifFault.new Method [AX 2012]

Microsoft internal use only.

public void new(
    AifFaultType _faultType, 
    str _reason, 
    str _code, 
   [AifXml _detailXml, 
    AifFaultContext _faultContext, 
    container _reasonParameters])

Run On

Called

Parameters

_faultType
Type: AifFaultType Enumeration
An enumeration value that describes the type of the fault.
_reason
Type: str
The reason the fault occurred.
_code
Type: str
The code of the fault.
_detailXml
Type: AifXml Extended Data Type
The details of the fault in XML; optional.
_faultContext
Type: AifFaultContext Class
The context of the fault; optional.
_reasonParameters
Type: container
A container that contains the parameters that are used to create the _reason String via strFmt; optional.

If the value of the _reason parameter is a label ID (i.e. in the form "@SYSnnnnn"), strFmt will be used to create a reason String by substituting the value of the _parameters parameter.

Community Additions

ADD
Show: