AsyncGroupException.cs 468 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. namespace XGame.Framework.Asyncs
  4. {
  5. public class AsyncGroupException : Exception
  6. {
  7. public List<Exception> elementExceptions = new List<Exception>();
  8. public void AddException(Exception exception)
  9. {
  10. elementExceptions.Add(exception);
  11. }
  12. public void RemoveException(Exception exception)
  13. {
  14. elementExceptions.Remove(exception);
  15. }
  16. }
  17. }