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