WorkerThreadException.cs 694 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace PaintDotNet
  3. {
  4. /// <summary>
  5. /// This exception is thrown by a foreground thread when a background worker thread
  6. /// had an exception. This allows all exceptions to be handled by the foreground thread.
  7. /// </summary>
  8. public class WorkerThreadException
  9. : PdnException
  10. {
  11. private const string defaultMessage = "Worker thread threw an exception";
  12. public WorkerThreadException(Exception innerException)
  13. : this(defaultMessage, innerException)
  14. {
  15. }
  16. public WorkerThreadException(string message, Exception innerException)
  17. : base(message, innerException)
  18. {
  19. }
  20. }
  21. }