Error handling functions

These functions can be used to trace or construct errors.

Name Description
Diagnostics.ActivityId Returns an opaque identifier for the currently-running evaluation.
Diagnostics.Trace Writes a trace message, if tracing is enabled, and returns value.
Error.Record Returns a record containing fields Reason, Message, and Detail set to the provided values. The record can be used to raise or throw an error.