private void HandleExceptions(XboxLiveException ex) { if (DebugLogsOn) { Debug.LogWarning("An exception occured in " + ex.Source + "of type: " + ex.Type + " Details: " + ex.InnerException.Message); } }
public void ThrowException(ExceptionSource sourceComponent, ExceptionType exceptionType, Exception ex) { if (this.ErrorCallbacks.ContainsKey(sourceComponent) && this.ErrorCallbacks[sourceComponent].Count > 0) { var errorToThrow = new XboxLiveException() { Source = sourceComponent, Type = exceptionType, InnerException = ex }; foreach (var callback in this.ErrorCallbacks[sourceComponent]) { callback(errorToThrow); } } }