UnhandledExceptionEventArgs.cs 674 B

12345678910111213141516171819202122
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System
  5. {
  6. public class UnhandledExceptionEventArgs : EventArgs
  7. {
  8. private readonly object _exception;
  9. private readonly bool _isTerminating;
  10. public UnhandledExceptionEventArgs(object exception, bool isTerminating)
  11. {
  12. _exception = exception;
  13. _isTerminating = isTerminating;
  14. }
  15. public object ExceptionObject => _exception;
  16. public bool IsTerminating => _isTerminating;
  17. }
  18. }