public void HandleGlobalException(Exception e) { if (HostServices.GlobalExceptionHandler != null) { HostServices.GlobalExceptionHandler(e); } else { RuntimeLogger.LogError($"!!! Unhandled Exception: {e}"); } }
public void CheckForUnhandledException(object result) { if (Serializer.DeserializeException(result, out var exceptionResult)) { if (HostServices.GlobalExceptionHandler != null) { HostServices.GlobalExceptionHandler(exceptionResult); } else { RuntimeLogger.LogError($"!!! Unhandled Exception: {exceptionResult}"); } } }