DNException (Magic xpa 4.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.
|
Exceptions:
|
This function is not supported in Web Client tasks.
|
Platform specific:
|
This function is not supported for mobile device s.
|
See also:
|
DNExceptionOccurred
.NET Exceptions
How Do I Handle .NET Exceptions?
Dot Net Tutorial sample project
|
This function is not available in Web Client tasks.