You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure about other targets, but it can be helpful for debugging to make use of the underlying platform's ability to decorate an error with additional context information, but not lose track of the original message and trace.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Would it be possible to support
System.Exception.get_InnerException
?It currently fails at compile time with
error FABLE: System.Exception.get_InnerException is not supported by Fable
.For javascript, it could map to the
cause
parameter:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause#rethrowing_an_error_with_a_cause
and on python
https://python-future.org/compatible_idioms.html#raising-exceptions
raise_from
Not sure about other targets, but it can be helpful for debugging to make use of the underlying platform's ability to decorate an error with additional context information, but not lose track of the original message and trace.
Beta Was this translation helpful? Give feedback.
All reactions