cxx icon indicating copy to clipboard operation
cxx copied to clipboard

Expose the inner rust side error type via the exception on the c++ side

Open weiznich opened this issue 3 years ago • 2 comments

This is an attempt to address https://github.com/dtolnay/cxx/issues/870 and similar issues.

I attempt to expose more information on the underlying rust error by including the the original error into the c++ side exception. This allows accessing any error related information from the c++ side as well, assuming that the error type is exposed as part of the cxx bridge definition.

I deliberately open this PR in this state, to gather some feedback on the design idea before spending to much time on details.

weiznich avatar Jul 06 '22 10:07 weiznich

Gentle ping to @dtolnay to get some input on the general design and whether this feature is wanted or not.

weiznich avatar Jul 12 '22 14:07 weiznich

I am interested for this crate to support this, but I will not be able to prioritize iterating on the implementation in the near term.

dtolnay avatar Jul 17 '22 03:07 dtolnay