Class TryCatch
Handles an exception if it occurs.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Flow", 36)]
public sealed class TryCatch : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Properties
canDefine
Declaration
public override bool canDefine { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.canDefine
catch
The action to execute if an exception is thrown.
Declaration
[DoNotSerialize]
public ControlOutput catch { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
enter
The entry point for the try-catch block.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false, showDocumentation = false)]
public ControlInput enter { get; }
Property Value
Type | Description |
---|---|
ControlInput |
exception
The exception that was thrown in the try block.
Declaration
[DoNotSerialize]
public ValueOutput exception { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
exceptionType
Declaration
[DoNotSerialize]
[Inspectable]
[UnitSettingDisplay]
[TypeFilter(new Type[]{typeof(Exception)}, Matching = TypesMatching.AssignableToAll)]
public Type exceptionType { get; set; }
Property Value
Type | Description |
---|---|
Type |
finally
The action to execute afterwards, regardless of whether there was an exception.
Declaration
[DoNotSerialize]
public ControlOutput finally { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
try
The action to attempt.
Declaration
[DoNotSerialize]
public ControlOutput try { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
Enter(Flow)
Declaration
public ControlOutput Enter(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
ControlOutput |