using System;
using System.Collections.Generic;
using System.Text;
namespace Apewer.Web
{
/// 调度程序捕获的异常信息。
public sealed class ApiCatch
{
ApiController _controller = null;
ApiOptions _options = null;
Exception _exception = null;
/// 调度程序调用的控制器。
public ApiController Controller { get => _controller; }
/// 调度程序使用的 API 选项。
public ApiOptions Options { get => _options; }
/// 已捕获的异常。
public Exception Exception { get => _exception; }
internal ApiCatch(ApiController controller, ApiOptions options, Exception exception)
{
_controller = controller;
_options = options;
_exception = exception;
}
}
}