onflow / atree

Atree provides scalable arrays and scalable ordered maps.
https://onflow.org
Apache License 2.0
39 stars 16 forks source link

Export error fields #239

Closed turbolent closed 2 years ago

turbolent commented 2 years ago

Description

Users of the library might want to use the error details, so export the error fields.


fxamacker commented 2 years ago

I'm hesitant to export private error fields from Atree because:

What do you think about creating getter functions to return specific error detail you currently need instead?

turbolent commented 2 years ago

Sounds good! I didn't end up needing the exported fields in Cadence, so we can just close the PR.