Error.Record

Syntax

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

About

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