void OnAsyncException(Exception exception) { Log.ErrorException(exception); if (exception is CoRoutineException) { // Don't bother showing the coroutine trace - it is in the log if you want it var coroutineException = (CoRoutineException)exception; exception = coroutineException.InnerException; } DisplayErrorInternal(exception.GetFullMessage()); }
// We assume here that the error has already been logged elsewhere public void DisplayError(Exception exception) { if (exception is AsyncOperationException) { exception = exception.InnerException; } if (exception is CoRoutineException) { // Don't bother showing the coroutine trace - it is in the log if you want it exception = exception.InnerException; } DisplayErrorInternal(exception.GetFullMessage(false)); }