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
Is it possible to store a reference to the original Clr Exception and then have it available in a separate property of JavaScriptException?
Currently, we get a message of an error only + part of a stack, but not the whole Exception that may include vital information about the source of the issue in Clr functions called via interop.
I tried to enhance ExceptionHelper.ThrowMeaningfulException in MethodInfoFunctionInstance to pass Exception and then keep it in JavaScriptException, but as I see in a debugger, that Exception is then converted into JsValue (CompletionType.Throw) and then rethrown as a new JavaScriptException, so all additional information is lost.
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
-
Hello,
Is it possible to store a reference to the original Clr Exception and then have it available in a separate property of
JavaScriptException
?Currently, we get a message of an error only + part of a stack, but not the whole Exception that may include vital information about the source of the issue in Clr functions called via interop.
I tried to enhance
ExceptionHelper.ThrowMeaningfulException
inMethodInfoFunctionInstance
to pass Exception and then keep it inJavaScriptException
, but as I see in a debugger, that Exception is then converted intoJsValue
(CompletionType.Throw
) and then rethrown as a newJavaScriptException
, so all additional information is lost.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions