Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Exact scope of GeneralError?Forum ↗

Exact scope of GeneralError?

App Development3 posts203 views2 likesLast activity Apr 2022
GY
gyorgybalazsiOP
Apr 2022

Can you tell me what is the exact scope of GeneralError? I mean exactly which error cases are covered by it.

RE
Remy
Apr 2022

Hi,

Internally the GeneralError is only thrown by the Daml builtin error : Text -> a (when compiled to LF >= 1.14).

However we use the error builtin to report illegal argument errors in the standard library (for example in DA.List, DA.Math, DA.Action, DA.Logic, DA.Date, DA.Text, DA.Optional) and implement the convenience placeholder undefined : a from DA.Prelude.

GY
gyorgybalazsi
Apr 2022

Thank you, Remy!

← Back to Discussions