.

Global.LastException

The last MPX exception that occurred in the current thread.

This property is intended to be used for LabVIEW and other programming languages that transform .NET exceptions into a generic error code, preventing any information about the specific exception to be lost.

Version History

Introduced in MPX 2.0.

Type

Mpx.Exception (read only)

Common Exceptions

 
Error Occurs when...
Argument An invalid argument is specified.

Visual Basic

Syntax

Property LastException As Mpx.Exception

Sample Code

 

It is not recommended to use LastException for Visual Basic applications.


Sample Application

 

C#

Syntax

Mpx.Exception LastException;

Sample Code

 

It is not recommended to use LastException for C# applications.

 

See Also

Enumerations
Error

Overviews
Error Handling Overview

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering