namespace IStation.Epanet.Enums { /// /// 错误代码 /// public enum ErrorCode { /// No error Ok = 0, /// WARNING:System hydraulically unbalanced. [Error("警告:系统液压失衡")] Warn1 = 1, /// WARNING:System may be hydraulically unstable. [Error("警告:系统液压可能不稳定")] Warn2 = 2, /// WARNING:System disconnected. [Error("警告:系统断开连接")] Warn3 = 3, /// WARNING:Pumps cannot deliver enough flow or head. [Error("警告:泵无法提供足够的流量或扬程")] Warn4 = 4, /// WARNING:Valves cannot deliver enough flow. [Error("警告:阀门无法提供足够的流量")] Warn5 = 5, /// WARNING:System has negative pressures. [Error("警告:系统有负压")] Warn6 = 6, /// System Error 101:insufficient memory available. [Error("系统错误:可用内存不足")] Err101 = 101, /// System Error 102:no network data available. [Error("系统错误:没有需要处理的管网数据")] Err102 = 102, /// System Error 103:hydraulics not initialized. [Error("系统错误:水力求解器没有初始化")] Err103 = 103, /// System Error 104:no hydraulics for water quality analysis. [Error("系统错误:没有可用的水力结果")] Err104 = 104, /// System Error 105:water quality not initialized. [Error("系统错误:水质求解器没有初始化")] Err105 = 105, /// System Error 106:no results saved to report on. [Error("系统错误:没有可以报告的结果")] Err106 = 106, /// System Error 107:hydraulics supplied from external file. [Error("系统错误:液压系统由外部文件提供")] Err107 = 107, /// System Error 108:cannot use external file while hydraulics solver is active. [Error("系统错误:液压求解器激活时无法使用外部文件")] Err108 = 108, /// System Error 109:cannot change time parameter when solver is active. [Error("系统错误:求解器激活时无法更改时间参数")] Err109 = 109, /// System Error 110:cannot solve network hydraulic equations. [Error("系统错误:不能够求解水力方程组")] Err110 = 110, /// System Error 120:cannot solve water quality transport equations. [Error("系统错误:不能够求解WQ迁移方程组")] Err120 = 120, /// Input Error 200:one or more errors in input file. [Error("输入错误:输入文件中有一处或者多处错误")] Err200 = 200, /// Input Error 201:syntax error in following line of [%s] section: [Error("输入错误:syntax error in following line of [%s] section")] Err201 = 201, /// Input Error 202:%s %s contains illegal numeric value. [Error("输入错误:函数调用中具有非法数值")] Err202 = 202, /// Input Error 203:%s %s refers to undefined node. [Error("输入错误:函数调用中具有未定义的节点")] Err203 = 203, /// Input Error 204:%s %s refers to undefined link. [Error("输入错误:函数调用中具有未定义的管段")] Err204 = 204, /// Input Error 205:%s %s refers to undefined time pattern. [Error("输入错误:函数调用中具有未定义的时间模式")] Err205 = 205, /// Input Error 206:%s %s refers to undefined curve. [Error("输入错误:%s %s refers to undefined curve")] Err206 = 206, /// Input Error 207:%s %s attempts to control a CV. [Error("输入错误:试图控制止回阀")] Err207 = 207, /// Input Error 208:%s specified for undefined Node %s. [Error("输入错误:%s specified for undefined Node %s")] Err208 = 208, /// Input Error 209:illegal %s value for Node %s. [Error("输入错误:illegal %s value for Node %s")] Err209 = 209, /// Input Error 210:%s specified for undefined Link %s. [Error("输入错误:%s specified for undefined Link %s")] Err210 = 210, /// Input Error 211:illegal %s value for Link %s. [Error("输入错误:illegal %s value for Link %s")] Err211 = 211, /// Input Error 212:trace node %.0s %s is undefined. [Error("输入错误:trace node %.0s %s is undefined")] Err212 = 212, /// Input Error 213:illegal option value in [%s] section: [Error("输入错误:illegal option value in [%s] section")] Err213 = 213, /// Input Error 214:following line of [%s] section contains too many characters: [Error("输入错误:following line of [%s] section contains too many characters")] Err214 = 214, /// Input Error 215:%s %s is a duplicate ID. [Error("输入错误:%s %s is a duplicate ID")] Err215 = 215, /// Input Error 216:%s data specified for undefined Pump %s. [Error("输入错误:%s data specified for undefined Pump %s")] Err216 = 216, /// Input Error 217:invalid %s data for Pump %s. [Error("输入错误:invalid %s data for Pump %s")] Err217 = 217, /// Input Error 219:%s %s illegally connected to a tank. [Error("输入错误:%s %s illegally connected to a tank")] Err219 = 219, /// Input Error 220:%s %s illegally connected to another valve. [Error("输入错误:%s %s illegally connected to another valve")] Err220 = 220, /*** Updated on 10/25/00 ***/ /// Input Error 222:%s %s has same start and end nodes. [Error("输入错误:%s %s has same start and end nodes")] Err222 = 222, /// Input Error 223:not enough nodes in network [Error("输入错误:管网中没有充分的节点")] Err223 = 223, /// Input Error 224:no tanks or reservoirs in network. [Error("输入错误:管网中不存在水池或者水库")] Err224 = 224, /// Input Error 225:invalid lower/upper levels for Tank %s. [Error("输入错误:invalid lower/upper levels for Tank %s")] Err225 = 225, /// Input Error 226:no head curve supplied for Pump %s. [Error("输入错误:no head curve supplied for Pump %s")] Err226 = 226, /// Input Error 227:invalid head curve for Pump %s. [Error("输入错误:invalid head curve for Pump %s")] Err227 = 227, /// Input Error 230:Curve %s has nonincreasing x-values. [Error("输入错误:Curve %s has nonincreasing x-values")] Err230 = 230, /// Input Error 233:Node %s is unconnected. [Error("输入错误:Node %s is unconnected")] Err233 = 233, /// Input Error 240:%s %s refers to undefined source. [Error("输入错误:函数调用中具有未定义的水源")] Err240 = 240, /// Input Error 241:%s %s refers to undefined control. [Error("输入错误:函数调用中具有未定义的控制语句")] Err241 = 241, /// Input Error 250:function call contains invalid format. [Error("输入错误:函数参数格式非法")] Err250 = 250, /// Input Error 251:function call contains invalid parameter code. [Error("输入错误:函数调用中具有非法参数代号")] Err251 = 251, /// File Error 301:identical file names. [Error("文件错误:相同的文件名")] Err301 = 301, /// File Error 302:cannot open input file. [Error("文件错误:不能够打开输入文件")] Err302 = 302, /// File Error 303:cannot open report file. [Error("文件错误:不能够打开报告文件")] Err303 = 303, /// File Error 304:cannot open binary output file. [Error("文件错误:不能够打开二进制输出文件")] Err304 = 304, /// File Error 305:cannot open hydraulics file. [Error("文件错误:不能够打开水力文件")] Err305 = 305, /// File Error 306:hydraulics file does not match network data. [Error("文件错误:非法水力文件")] Err306 = 306, /// File Error 307:cannot read hydraulics file. [Error("文件错误:不能够阅读水力文件")] Err307 = 307, /// File Error 308:cannot save results to file. [Error("文件错误:不能够将结果保存到文件")] Err308 = 308, /// File Error 309:cannot save results to report file. [Error("文件错误:不能够将报告写入文件")] Err309 = 309, } }