Salesforce

DNException (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

DNException (Magic xpa 2.x)

Returns a reference to the last exception occurred by a .NET operation.

Syntax:

DNException()

Parameters:

None

Returns:

A reference to the last exception thrown during the last operation involving a .NET variable.

Each call clears the exception when activated.

Example:

Update A DNException()

Note:

  • After you enter or select this function, you can then type a dot (.) and the Auto-Complete function will be activated.

  • To refer to multiple properties of the exception object, define a .NET variable of type Exception and update it with DNException().

  • The exception has two properties. The InnerException, which usually gives more information about the exception, such as sending mail, the connection failed, and could not ping to the machine; and the Message, which is a string that describes the error.

  • Since this function returns a .NET object, you can use it as a part of an expression, as you would with other .NET objects. For example: you can use the Verify operation with DNException().Message in order to show the exception message.

Platform specific:

This function is not supported for mobile devices.

See also:

DNExceptionOccurred

.NET Exceptions

How Do I Handle .NET Exceptions?

Dot Net Tutorial sample project

Reference
Attachment 
Attachment