Opened 4 years ago

Closed 4 years ago

#2315 closed defect (fixed)

Meaningless System.Exception thrown if no proxy for unmanaged exception found

Reported by: jng Owned by: jng
Priority: low Milestone:
Component: Web API Version: 2.5.0
Severity: trivial Keywords:
Cc: External ID:

Description

If an MgException?-derived exception is thrown from the C++ code, and the .net wrapper fails to resolve an appropriate .net proxy class equivalent to throw on the managed side. A plain vanilla System.Exception is thrown.

This is not an issue, except that the exception is thrown without a message, making error diagnosis quite unhelpful.

At the very least, this exception should contain the .net class name of the proxy exception class we could not find to throw a new instance of.

Change History (2)

comment:1 Changed 4 years ago by jng

Owner: set to jng

comment:2 Changed 4 years ago by jng

Resolution: fixed
Status: newclosed

Fixed r7666

Note: See TracTickets for help on using tickets.