OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
error.h File Reference

Header file for error codes. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ErrorType {
  ERR_NONE = 0 ,
  ERR_MEMORY = 101 ,
  ERR_KINWAVE = 103 ,
  ERR_ODE_SOLVER = 105 ,
  ERR_TIMESTEP = 107 ,
  ERR_SUBCATCH_OUTLET = 108 ,
  ERR_AQUIFER_PARAMS = 109 ,
  ERR_GROUND_ELEV = 110 ,
  ERR_LENGTH = 111 ,
  ERR_ELEV_DROP = 112 ,
  ERR_ROUGHNESS = 113 ,
  ERR_BARRELS = 114 ,
  ERR_SLOPE = 115 ,
  ERR_NO_XSECT = 117 ,
  ERR_XSECT = 119 ,
  ERR_NO_CURVE = 121 ,
  ERR_PUMP_LIMITS = 122 ,
  ERR_LOOP = 131 ,
  ERR_MULTI_OUTLET = 133 ,
  ERR_DUMMY_LINK = 134 ,
  ERR_DIVIDER = 135 ,
  ERR_DIVIDER_LINK = 136 ,
  ERR_WEIR_DIVIDER = 137 ,
  ERR_NODE_DEPTH = 138 ,
  ERR_REGULATOR = 139 ,
  ERR_STORAGE_VOLUME = 140 ,
  ERR_OUTFALL = 141 ,
  ERR_REGULATOR_SHAPE = 143 ,
  ERR_NO_OUTLETS = 145 ,
  ERR_UNITHYD_TIMES = 151 ,
  ERR_UNITHYD_RATIOS = 153 ,
  ERR_RDII_AREA = 155 ,
  ERR_RAIN_FILE_CONFLICT = 156 ,
  ERR_RAIN_GAGE_FORMAT = 157 ,
  ERR_RAIN_GAGE_TSERIES = 158 ,
  ERR_RAIN_GAGE_INTERVAL = 159 ,
  ERR_CYCLIC_TREATMENT = 161 ,
  ERR_CURVE_SEQUENCE = 171 ,
  ERR_TIMESERIES_SEQUENCE = 173 ,
  ERR_SNOWMELT_PARAMS = 181 ,
  ERR_SNOWPACK_PARAMS = 182 ,
  ERR_LID_TYPE = 183 ,
  ERR_LID_LAYER = 184 ,
  ERR_LID_PARAMS = 185 ,
  ERR_LID_AREAS = 187 ,
  ERR_LID_CAPTURE_AREA = 188 ,
  ERR_START_DATE = 191 ,
  ERR_REPORT_DATE = 193 ,
  ERR_REPORT_STEP = 195 ,
  ERR_INPUT = 200 ,
  ERR_LINE_LENGTH = 201 ,
  ERR_ITEMS = 203 ,
  ERR_KEYWORD = 205 ,
  ERR_DUP_NAME = 207 ,
  ERR_NAME = 209 ,
  ERR_NUMBER = 211 ,
  ERR_DATETIME = 213 ,
  ERR_RULE = 217 ,
  ERR_TRANSECT_UNKNOWN = 219 ,
  ERR_TRANSECT_SEQUENCE = 221 ,
  ERR_TRANSECT_TOO_FEW = 223 ,
  ERR_TRANSECT_TOO_MANY = 225 ,
  ERR_TRANSECT_MANNING = 227 ,
  ERR_TRANSECT_OVERBANK = 229 ,
  ERR_TRANSECT_NO_DEPTH = 231 ,
  ERR_MATH_EXPR = 233 ,
  ERR_INFIL_PARAMS = 235 ,
  ERR_FILE_NAME = 301 ,
  ERR_INP_FILE = 303 ,
  ERR_RPT_FILE = 305 ,
  ERR_OUT_FILE = 307 ,
  ERR_OUT_SIZE = 308 ,
  ERR_OUT_WRITE = 309 ,
  ERR_OUT_READ = 311 ,
  ERR_RAIN_FILE_SCRATCH = 313 ,
  ERR_RAIN_FILE_OPEN = 315 ,
  ERR_RAIN_FILE_DATA = 317 ,
  ERR_RAIN_FILE_SEQUENCE = 318 ,
  ERR_RAIN_FILE_FORMAT = 319 ,
  ERR_RAIN_IFACE_FORMAT = 320 ,
  ERR_RAIN_FILE_GAGE = 321 ,
  ERR_RUNOFF_FILE_OPEN = 323 ,
  ERR_RUNOFF_FILE_FORMAT = 325 ,
  ERR_RUNOFF_FILE_END = 327 ,
  ERR_RUNOFF_FILE_READ = 329 ,
  ERR_HOTSTART_FILE_OPEN = 331 ,
  ERR_HOTSTART_FILE_FORMAT = 333 ,
  ERR_HOTSTART_FILE_READ = 335 ,
  ERR_NO_CLIMATE_FILE = 336 ,
  ERR_CLIMATE_FILE_OPEN = 337 ,
  ERR_CLIMATE_FILE_READ = 338 ,
  ERR_CLIMATE_END_OF_FILE = 339 ,
  ERR_RDII_FILE_SCRATCH = 341 ,
  ERR_RDII_FILE_OPEN = 343 ,
  ERR_RDII_FILE_FORMAT = 345 ,
  ERR_ROUTING_FILE_OPEN = 351 ,
  ERR_ROUTING_FILE_FORMAT = 353 ,
  ERR_ROUTING_FILE_NOMATCH = 355 ,
  ERR_ROUTING_FILE_NAMES = 357 ,
  ERR_TABLE_FILE_OPEN = 361 ,
  ERR_TABLE_FILE_READ = 363 ,
  ERR_SYSTEM = 500 ,
  MAXERRMSG = 1000
}
 Enumeration of error codes used in SWMM5. More...
 

Functions

char * error_getMsg (int i, char *msg)
 Get the error message for a given error code.
 
int error_setInpError (int errcode, char *s)
 Set an error code in the error manager.
 

Detailed Description

Header file for error codes.

Author
L. Rossman
Date
Created: 2021-11-01
Last updated: 2024-12-30
Version
5.3.0

Error codes used in the SWMM model.

Update history

Build 5.3.0

  • Moved API error codes to swmm.h so that they can be accessed for interpretation

Function Documentation

◆ error_getMsg()

char * error_getMsg ( int  i,
char *  msg 
)

Get the error message for a given error code.

Parameters
[in]iError code
[out]msgError message
Returns
Error message
Here is the caller graph for this function:

◆ error_setInpError()

int error_setInpError ( int  errcode,
char *  s 
)

Set an error code in the error manager.

Parameters
[in]errcodeError code
[in]sError message
Returns
Error code
Here is the caller graph for this function: