Class ExceptionIntrinsics.Operators
A collection of names for exception handling operations.
Inheritance
System.Object
ExceptionIntrinsics.Operators
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Flame.Compiler.Instructions
Assembly: Flame.Compiler.dll
Syntax
public static class Operators
Fields
| Improve this Doc View SourceAll
An immutable array containing all standard exception handling intrinsics.
Declaration
public static readonly ImmutableArray<string> All
Field Value
Type | Description |
---|---|
System.Collections.Immutable.ImmutableArray<System.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 |
---|---|
System.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 |
---|---|
System.String |
Rethrow
The 'rethrow' operator, which rethrows an existing exception.
Declaration
public const string Rethrow = "rethrow"
Field Value
Type | Description |
---|---|
System.String |
Throw
The 'throw' operator, which throws a new exception.
Declaration
public const string Throw = "throw"
Field Value
Type | Description |
---|---|
System.String |