Class TryCatch
Handles an exception if it occurs.
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
[UnitCategory]
[UnitOrderAttribute]
public sealed class TryCatch : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
canDefine
Gets a value indicating whether this unit can be defined.
Declaration
public override bool canDefine { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
catch
The action to execute if an exception is thrown.
Declaration
[DoNotSerializeAttribute]
public ControlOutput @catch { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
enter
The entry point for the try-catch block.
Declaration
[DoNotSerializeAttribute]
public ControlInput enter { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
exception
The exception that was thrown in the try block.
Declaration
[DoNotSerializeAttribute]
public ValueOutput exception { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
exceptionType
Declaration
[SerializeAttribute]
[InspectableAttribute]
[UnitHeaderInspectableAttribute]
public Type exceptionType { get; set; }
Property Value
| Type | Description |
|---|---|
| Type |
finally
The action to execute afterwards, regardless of whether there was an exception.
Declaration
[DoNotSerializeAttribute]
public ControlOutput @finally { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
try
The action to attempt.
Declaration
[DoNotSerializeAttribute]
public ControlOutput @try { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Enter(Flow)
Declaration
public ControlOutput Enter(Flow flow)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow |
Returns
| Type | Description |
|---|---|
| ControlOutput |
Implements
IDisposable