.

Test.ExceptionTest1

Creates an MPX exception from an MPI error code. The default MPI message string will be attached to the MPX exception. This is useful for testing an application’s error handling routines.

Version History

Introduced in MPX 2.0.

Result

Void

Arguments

 
Argument Type Description
mpiMsg Int32 The MPI library error code to use to generate an MPX exception.

Common Exceptions

 
Error Occurs when...
Assertion If the specified error code is not valid.

Visual Basic

Syntax

Sub ExceptionTest1(mpiMsg As Int32)

Sample Code

 

Mpx.Test.ExceptionTest1(1)


Sample Application

ErrorHandling1

C#

Syntax

void ExceptionTest1(int mpiMsg);

Sample Code

 

Mpx.Test.ExceptionTest1(1);

 

See Also

ExceptionTest2
ExceptionTest3

Enumerations
Error

Overviews
Error Handling Overview



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