Share via


AifFault Class [AX 2012]

The AifFault class provides a static programming model to throw fault messages.

Syntax

class AifFault extends SysInfoAction

Run On

Called

Methods

  Method Description
Gg768542.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif description (Inherited from SysInfoAction.)
Gg768542.pubmethod(en-us,AX.60).gif enabled (Inherited from SysInfoAction.)
Gg768542.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif getCode Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif getContext Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif getDetailXml Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif getFaultType Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif getReason Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif getReasonLabelId Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif getReasonStringSubstitutionParameters Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif hasAccessRights Indicates whether the user has access to this resource. (Inherited from SysInfoAction.)
Gg768542.pubmethod(en-us,AX.60).gif new Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif pack Microsoft internal use only. (Overrides the pack Method.)
Gg768542.pubmethod(en-us,AX.60).gif run (Inherited from SysInfoAction.)
Gg768542.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif unpack Deserializes the packedClass parameter value to an instance of the AifFault class. (Overrides the unpack Method.)
Gg768542.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg768542.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg768542.privmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::buildReason
Gg768542.pubmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::checkFailedLogFault Logs the fault as a warning.
Gg768542.pubmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::fault Throws a single fault that has the error message to the end user.
Gg768542.pubmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::faultList Throws a fault that has the error message and a list of all logged faults to the end user.
Gg768542.pubmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::faultXml Microsoft internal use only.
Gg768542.privmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::getExceptionFromInfologData Microsoft internal use only.
Gg768542.privmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::getFaultFromInfologData Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::getRootFault Microsoft internal use only.
Gg768542.pubmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::hasFault Specifies whether any faults were logged.
Gg768542.pubmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::logError Logs the fault as an error.
Gg768542.pubmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::logWarning Logs the fault as a warning.
Gg768542.pubmethod(en-us,AX.60).gif Gg768542.static(en-us,AX.60).gif ::serialize Microsoft internal use only.

Top

Remarks

The AifFault class throws the actual error message to the end user. Compare this to using the error and warning methods of the Infolog. In this case a generic message, "Request failed. See the exception log for more information", is displayed to the end user.

Do not use the AifFault class if the error message is to be hidden for security reasons.

Inheritance Hierarchy

Object Class
  SysInfoAction Class
    AifFault Class