public static void HandleFatalError(FatalException exception) { try { string message = exception.InnerException?.Message; UpsertDialog(message); } catch (Exception ex) { Debug.LogError("Exception while trying to create the fatal exception dialog"); Debug.LogException(ex); Application.Quit(); } throw new HandledFatalException(exception); }
public HandledFatalException(FatalException exception) : base(exception.Message, exception.InnerException) { }