public void HandleGlobalException(Exception e)
 {
     if (HostServices.GlobalExceptionHandler != null)
     {
         HostServices.GlobalExceptionHandler(e);
     }
     else
     {
         RuntimeLogger.LogError($"!!! Unhandled Exception: {e}");
     }
 }
Exemple #2
0
 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}");
         }
     }
 }