The shape of a tagged error instance created by a FailureConstructor.
Tagged errors carry a __tag string discriminant that enables type-safe pattern matching via catchTags. The optional cause property holds the underlying error when wrapping other exceptions.
__tag
cause
A string literal type used as the tag discriminator
Optional
The shape of a tagged error instance created by a FailureConstructor.
Remarks
Tagged errors carry a
__tagstring discriminant that enables type-safe pattern matching via catchTags. The optionalcauseproperty holds the underlying error when wrapping other exceptions.