Class ExceptionIntrinsics.Operators
A collection of names for exception handling operations.
Inherited Members
Namespace: Flame.Compiler.Instructions
Assembly: Flame.Compiler.dll
Syntax
public static class ExceptionIntrinsics.Operators
Fields
| Edit this page View SourceAll
An immutable array containing all standard exception handling intrinsics.
Declaration
public static readonly ImmutableArray<string> All
Field Value
| Type | Description |
|---|---|
| ImmutableArray<string> |
Capture
The 'capture' operator, which captures a (thrown) exception. Captured exceptions can be rethrown.
Declaration
public const string Capture = "capture"
Field Value
| Type | Description |
|---|---|
| string |
GetCapturedException
The 'get_captured_exception' operator, which extracts the exception captured by a captured exception.
Declaration
public const string GetCapturedException = "get_captured_exception"
Field Value
| Type | Description |
|---|---|
| string |
Rethrow
The 'rethrow' operator, which rethrows an existing exception.
Declaration
public const string Rethrow = "rethrow"
Field Value
| Type | Description |
|---|---|
| string |
Throw
The 'throw' operator, which throws a new exception.
Declaration
public const string Throw = "throw"
Field Value
| Type | Description |
|---|---|
| string |