using System;
namespace Update.Core.Events
{
///
/// 错误事件类型
///
///
///
public delegate void ErrorEventHandler(object sender, ErrorEventArgs e);
///
/// 错误时间数据
///
public class ErrorEventArgs : EventArgs
{
///
/// 错误
///
public Exception Error { get; private set; }
///
/// 构造函数
///
///
public ErrorEventArgs(Exception error)
{
this.Error = error;
}
///
/// 构造函数
///
///
public ErrorEventArgs(string error)
{
this.Error = new Exception(error);
}
///
/// 构造函数
///
///
///
public ErrorEventArgs(string format, params object[] args)
{
this.Error = new Exception(string.Format(format, args));
}
}
}