Click or drag to resize

RuntimeManagerRuntimeExceptionOccured Event

Occurs when a runtime exception occurs.

Namespace:  OpenTestSystem.Otx.Runtime.Api
Assembly:  OpenTestSystem.Otx.Runtime.Api (in OpenTestSystem.Otx.Runtime.Api.dll) Version: 5.5.0.0 (6.1.0.31040)
Syntax
public event RuntimeExceptionOccuredHandler RuntimeExceptionOccured

Value

Type: OpenTestSystem.Otx.Runtime.Api.EventRuntimeExceptionOccuredHandler

Implements

IRuntimeManagerRuntimeExceptionOccured
Examples
Add a event handler.
C#
static class Program
{
    static void Main()
    { 
        RuntimeManager rt = new RuntimeManager();
        rt.Load("C:\\Sample.ptx");
        rt.RuntimeExceptionOccured += new OpenTestSystem.Otx.Runtime.Api.Event.RuntimeExceptionOccuredHandler(rt_RuntimeExceptionOccured);
        IProcedure main = rt.GetMainProcedure();
        main.Execute();
    } 

    private static void rt_RuntimeExceptionOccured(IProcedure procedure, System.Exception exception)
    {
        Console.WriteLine(procedure.Name + " : " + exception.Message);
    }
}
See Also