Exact scope of GeneralError?

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

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.

2 Likes

Thank you, Remy!