.

Mpx.AssertException

Declaration

 
Class Mpx.AssertException
Public Mpx.Exception Public Line As Int32
Public File As String
Public Condition As String
End Class

Description

AssertException is thrown when an internal MPX assertion occurs.

 
Mpx.Exception members
file The source file where the assertion occurred.
line The line where the assertion occurred.
condition A text representation of the of the condition that failed.

Sample Code

The following code calls Mpx.Test.AssertTest which is guaranteed to assert. The first catch statement will catch an Mpx.AssertException and log its associated text message to a file.

 

Try
mpx.Test.AssertTest()
Catch e As mpx.AssertException
LogToFile(ex.Message)
Catch e As Exception
' Handle exception appropriately
End Try

See Also

MPX Error Handling

Assertion Events

Mpx.Exception | Mpx.AssertException

 

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