mage icon indicating copy to clipboard operation
mage copied to clipboard

[Rust] Add the ability to return user-defined error from initialization/procedures

Open gitbuda opened this issue 4 years ago • 0 comments

E.g. define_procedure! returns rsmgp::result::Result which holds rsmgp::result::Error which is a finite set of errors. Figure out a way how an arbitrary error could be returned. At the moment, one way of dealing with the errors is to use panic! because the Memgraph engine will catch the panic.

Please take a look under, e.g., this PR #113 for a detailed example.

gitbuda avatar Dec 20 '21 15:12 gitbuda