IsRuntimeError Method

Indicates whether or not the current execution is in error state.

Syntax

Function IsRuntimeError() As Boolean

Parameters

None


Return Value


Type: Boolean

True: the current execution is in error state 

False: the current execution is not in error state

Examples

IronPython

#Check run-time error

err = str(Host.IsRuntimeError())



C#

//Check run-time error

string err = IsRuntimeError().ToString();


Remarks