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
29 lines
650 B
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;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|