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

Error messages. More...

#include <string.h>
#include "consts.h"
#include "error.h"
#include "error.txt"
Include dependency graph for error.c:

Macros

#define _CRT_SECURE_NO_DEPRECATE
 
#define ERR(code, string)   case code: strcpy(msg, string); break;
 

Functions

char * error_getMsg (int errCode, 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.
 

Variables

char ErrString [MAXMSG]
 

Detailed Description

Error messages.

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.1.008:
    • Text of Error 217 for control rules modified.
  • Build 5.1.010:
    • Text of Error 318 for rainfall data files modified.
  • Build 5.1.015:
    • Added new Error 140 for storage nodes.
  • Build 5.2.0:
    • Re-designed error message system.

- Added new Error 235 for invalid infiltration parameters.

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

◆ ERR

#define ERR (   code,
  string 
)    case code: strcpy(msg, string); break;

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:

Variable Documentation

◆ ErrString

char ErrString[MAXMSG]