using System;
using System.Collections.Generic;
using System.Text;

namespace Apewer.Web
{

    /// <summary>调度程序捕获的异常信息。</summary>
    public sealed class ApiCatch
    {

        ApiContext _context = null;
        Exception _exception = null;

        /// <summary>上下文。</summary>
        public ApiContext Context { get => _context; }

        /// <summary>已捕获的异常。</summary>
        public Exception Exception { get => _exception; }

        internal ApiCatch(ApiContext context, Exception exception)
        {
            _context = context;
            _exception = exception;
        }

    }

}