You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
650 B

3 years ago
11 months ago
3 years ago
11 months ago
3 years ago
11 months ago
3 years ago
11 months ago
3 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Apewer.Web
  5. {
  6. /// <summary>调度程序捕获的异常信息。</summary>
  7. public sealed class ApiCatch
  8. {
  9. ApiContext _context = null;
  10. Exception _exception = null;
  11. /// <summary>上下文。</summary>
  12. public ApiContext Context { get => _context; }
  13. /// <summary>已捕获的异常。</summary>
  14. public Exception Exception { get => _exception; }
  15. internal ApiCatch(ApiContext context, Exception exception)
  16. {
  17. _context = context;
  18. _exception = exception;
  19. }
  20. }
  21. }