Skip to content
CCPEDIAby Unity Nodes
App Development

Exact scope of GeneralError?

3 posts221 views2 likesLast activity Apr 2022

  1. gyorgybalazsiOP

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

  2. Remy 2

    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.

  3. gyorgybalazsi

    Thank you, Remy!