using System; using System.Collections.Generic; using System.Text; namespace Apewer.Web { /// 调度程序捕获的异常信息。 public sealed class ApiCatch { ApiContext _context = null; Exception _exception = null; /// 上下文。 public ApiContext Context { get => _context; } /// 已捕获的异常。 public Exception Exception { get => _exception; } internal ApiCatch(ApiContext context, Exception exception) { _context = context; _exception = exception; } } }