edgedb-python icon indicating copy to clipboard operation
edgedb-python copied to clipboard

Expose error fields

Open aljazerzen opened this issue 1 year ago • 1 comments

Currently, we do have property getters for error fields: https://github.com/edgedb/edgedb-python/blob/ca401141128dba2da443657edd61e45551e53b78/edgedb/errors/_base.py#L98-L127

... but they are not considered stable API. We should change that and also expose details field.

We do have similar code in the server:

https://github.com/edgedb/edgedb/blob/master/edb/errors/base.py#L178-L200

aljazerzen avatar Feb 07 '24 18:02 aljazerzen

I think probably details should be dumped in the default formatting

msullivan avatar Feb 08 '24 21:02 msullivan