1234567891011121314151617181920212223242526272829 |
- using System;
- namespace OSHttpServer
- {
- /// <summary>
- /// An unhandled exception have been caught by the system.
- /// </summary>
- public class ExceptionEventArgs : EventArgs
- {
- private readonly Exception _exception;
- /// <summary>
- /// Initializes a new instance of the <see cref="ExceptionEventArgs"/> class.
- /// </summary>
- /// <param name="exception">Caught exception.</param>
- public ExceptionEventArgs(Exception exception)
- {
- _exception = exception;
- }
- /// <summary>
- /// caught exception
- /// </summary>
- public Exception Exception
- {
- get { return _exception; }
- }
- }
- }
|