namespace BLL
{
using System;
using System.Runtime.Serialization;
///
/// 自定义异常 系统将捕获此异常,并转到自定义错误页面
///
[Serializable()]
public class FriendlyException : Exception
{
///
/// 构造异常
///
public FriendlyException()
: base()
{
}
///
/// 构造异常
///
/// 显示信息
public FriendlyException(string message)
: base(message)
{
}
///
/// 构造异常
///
/// 显示信息
/// 内部异常类
public FriendlyException(string message, Exception inner)
: base(message, inner)
{
}
///
/// 构造异常
///
/// 序列化信息
/// 数据流上下文
protected FriendlyException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}