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("")]
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("")]
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("")]
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("")]
Err208 = 208,
/// Input Error 209: illegal %s value for Node %s.
[Error("")]
Err209 = 209,
/// Input Error 210: %s specified for undefined Link %s.
[Error("")]
Err210 = 210,
/// Input Error 211: illegal %s value for Link %s.
[Error("")]
Err211 = 211,
/// Input Error 212: trace node %.0s %s is undefined.
[Error("")]
Err212 = 212,
/// Input Error 213: illegal option value in [%s] section:
[Error("")]
Err213 = 213,
/// Input Error 214: following line of [%s] section contains too many characters:
[Error("")]
Err214 = 214,
/// Input Error 215: %s %s is a duplicate ID.
[Error("")]
Err215 = 215,
/// Input Error 216: %s data specified for undefined Pump %s.
[Error("")]
Err216 = 216,
/// Input Error 217: invalid %s data for Pump %s.
[Error("")]
Err217 = 217,
/// Input Error 219: %s %s illegally connected to a tank.
[Error("")]
Err219 = 219,
/// Input Error 220: %s %s illegally connected to another valve.
[Error("")]
Err220 = 220,
/*** Updated on 10/25/00 ***/
/// Input Error 222: %s %s has same start and end nodes.
[Error("")]
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("")]
Err225 = 225,
/// Input Error 226: no head curve supplied for Pump %s.
[Error("")]
Err226 = 226,
/// Input Error 227: invalid head curve for Pump %s.
[Error("")]
Err227 = 227,
/// Input Error 230: Curve %s has nonincreasing x-values.
[Error("")]
Err230 = 230,
/// Input Error 233: Node %s is unconnected.
[Error("")]
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,
}
}