Class TryCatch
Handles an exception if it occurs.
Syntax
[UnitCategory("Control")]
[UnitOrder(17)]
public sealed class TryCatch : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
canDefine
Declaration
public override bool canDefine { get; }
Property Value
Overrides
catch
The action to execute if an exception is thrown.
Declaration
[DoNotSerialize]
public ControlOutput catch { get; }
Property Value
enter
The entry point for the try-catch block.
Declaration
[DoNotSerialize]
public ControlInput enter { get; }
Property Value
exception
The exception that was thrown in the try block.
Declaration
[DoNotSerialize]
public ValueOutput exception { get; }
Property Value
exceptionType
Declaration
[Serialize]
[Inspectable]
[UnitHeaderInspectable]
[TypeFilter(new Type[]{typeof(Exception)}, Matching = TypesMatching.AssignableToAll)]
[TypeSet(TypeSet.SettingsAssembliesTypes)]
public Type exceptionType { get; set; }
Property Value
finally
The action to execute afterwards, regardless of whether there was an exception.
Declaration
[DoNotSerialize]
public ControlOutput finally { get; }
Property Value
try
Declaration
[DoNotSerialize]
public ControlOutput try { get; }
Property Value
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Enter(Flow)
Declaration
public ControlOutput Enter(Flow flow)
Parameters
Type |
Name |
Description |
Flow |
flow |
|
Returns
Extension Methods