v9.6.2017.0808 重构正向工程,基于映射表查找数据库字段类型到实体类型的映射
大石头
编写于
2017-08-08 21:38:06
X
using System;
namespace NewLife.Net.Modbus
{
/// <summary>Modbus异常</summary>
public class ModbusException : Exception
{
private Errors _Error;
/// <summary>错误代码</summary>
public Errors Error { get { return _Error; } private set { _Error = value; } }
/// <summary>初始化</summary>
/// <param name="error"></param>
public ModbusException(Errors error) { Error = error; }
/// <summary>已重载。</summary>
/// <returns></returns>
public override String ToString()
{
return "Modbus Error " + Error;
}
}
}
|