digital-asset / daml

The Daml smart contract language
https://www.digitalasset.com/developers
Other
801 stars 203 forks source link

Exception support for upgrading #19595

Open basvangijzel-DA opened 3 months ago

basvangijzel-DA commented 3 months ago

On 3.x:

On 2.x:

samuel-williams-da commented 2 months ago

We document that exceptions should be defined in their own package and add a compiler warning. If you want to “upgrade” an exception, you create a new exception type. The only thing to be aware of is that the old code won’t be able to catch it.

dylant-da commented 1 month ago

Discussed in call with Paul and Samuel:

First, reproduce issue

For 2.x

For 3.x

dylant-da commented 1 month ago

Docs: https://github.com/digital-asset/docs.daml.com/pull/804