using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace formula { /// <summary> /// 业务异常 /// </summary> [Serializable] public class BuessinessException : Exception { /// <summary> /// 系统异常构造函数 /// </summary> public BuessinessException() { } /// <summary> /// 系统异常构造函数 /// </summary> /// <param>异常的消息</param> public BuessinessException(string message) : base(message) { } /// <summary> /// 系统异常构造函数 /// </summary> /// <param>异常的消息</param> /// <param>内部的异常</param> public BuessinessException(string message, System.Exception inner) : base(message, inner) { } /// <summary> /// 系统异常构造函数 /// </summary> /// <param>存有有关所引发异常的序列化的对象数据</param> /// <param>包含有关源或目标的上下文信息</param> public BuessinessException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }
最后,上代码:%28jb51.net%29.rar
您可能感兴趣的文章: