| Mpx.AssertException Declaration
        
          |  | 
              
                | Class Mpx.AssertExceptionPublic 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 CodeThe 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. 
        
          |  | 
              
                | 
Trympx.Test.AssertTest()
 Catch e As mpx.AssertException
 LogToFile(ex.Message)
 Catch e As Exception
 ' Handle exception appropriately
 End Try
 |  |  See AlsoMPX Error Handling   Assertion Events  Mpx.Exception | Mpx.AssertException   |