using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Core.Mes.Client.Comm { /// /// MES自定义异常 /// public class MESException : Exception { private int exceptionCode = -1; /// /// 异常码 /// public int ExceptionCode { get { return exceptionCode; } set { exceptionCode = value; } } private string exceptionInfo = ""; /// /// 异常描述 /// public string ExceptionInfo { get { return exceptionInfo; } set { exceptionInfo = value; } } /// /// 构造函数 /// public MESException() { } /// /// 构造函数 /// /// 异常消息 public MESException(string message) : base(message) { } /// /// 构造函数 /// /// 异常消息 /// 异常码 /// 异常描述 public MESException(string message, int exceptionCode, string exceptionInfo) : base(message) { this.ExceptionCode = exceptionCode; this.ExceptionInfo = exceptionInfo; } } }