ExceptionEventArgs.cs 723 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. namespace OSHttpServer
  3. {
  4. /// <summary>
  5. /// An unhandled exception have been caught by the system.
  6. /// </summary>
  7. public class ExceptionEventArgs : EventArgs
  8. {
  9. private readonly Exception _exception;
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="ExceptionEventArgs"/> class.
  12. /// </summary>
  13. /// <param name="exception">Caught exception.</param>
  14. public ExceptionEventArgs(Exception exception)
  15. {
  16. _exception = exception;
  17. }
  18. /// <summary>
  19. /// caught exception
  20. /// </summary>
  21. public Exception Exception
  22. {
  23. get { return _exception; }
  24. }
  25. }
  26. }