Table of contents
TOC
Collapse the table of content
Expand the table of content

Error.Record

Owen Duncan|Last Updated: 4/19/2018

About

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.

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

Arguments

ArgumentDescription
reasonThe value to set the Reason as.
messageThe value to set the Message as.
detailThe value to set the Detail as.

Example

error Error.Record("InvalidCondition","An error has occured", null)  
equals  error with Reason: “InvalidCondition” and Message “An error has occurred”  
© 2018 Microsoft