示例#1
0
        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());
        }
示例#2
0
        // 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));
        }