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.

34 lines
909 B

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. ApiController _controller = null;
  10. ApiOptions _options = null;
  11. Exception _exception = null;
  12. /// <summary>调度程序调用的控制器。</summary>
  13. public ApiController Controller { get => _controller; }
  14. /// <summary>调度程序使用的 API 选项。</summary>
  15. public ApiOptions Options { get => _options; }
  16. /// <summary>已捕获的异常。</summary>
  17. public Exception Exception { get => _exception; }
  18. internal ApiCatch(ApiController controller, ApiOptions options, Exception exception)
  19. {
  20. _controller = controller;
  21. _options = options;
  22. _exception = exception;
  23. }
  24. }
  25. }