.

Test.ExceptionTest2

Creates an MPX exception from an MPI error code and a message string. 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.
msgText String The message string to associate with the MPX exception.

Common Exceptions

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

Visual Basic

Syntax

Sub ExceptionTest2(mpiMsg As Int32, msgText As String)

Sample Code

 

Mpx.Test.ExceptionTest2(1, "Test String")


Sample Application

ErrorHandling1

C#

Syntax

void ExceptionTest2(int mpiMsg, string msgText);

Sample Code

 

Mpx.Test.ExceptionTest2(1, "Test String");

 

See Also

ExceptionTest1
ExceptionTest3

Enumerations
Error

Overviews
Error Handling Overview



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