Error.Record

Syntax

Error.Record(reason as text, optional message as nullable text, optional detail as any, optional parameters as nullable list, optional errorCode as nullable text) as record

About

Returns an error record from the provided text values for reason, message, detail, and error code.