Last change
on this file since 223 was 170, checked in by katerina, 17 years ago |
Plenty of compiler warnings fixed, SQL query length fixed, doc update.
|
File size:
726 bytes
|
Rev | Line | |
---|
[1] | 1 | #ifndef SH_ERROR_MIN_H
|
---|
| 2 | #define SH_ERROR_MIN_H
|
---|
| 3 |
|
---|
| 4 | /* Level of severity
|
---|
| 5 | */
|
---|
| 6 | typedef enum {
|
---|
| 7 |
|
---|
| 8 | SH_ERR_ALL = (1 << 0), /* debug */
|
---|
| 9 | SH_ERR_INFO = (1 << 1), /* info */
|
---|
| 10 | SH_ERR_NOTICE = (1 << 2), /* notice */
|
---|
| 11 | SH_ERR_WARN = (1 << 3), /* warning */
|
---|
| 12 | SH_ERR_STAMP = (1 << 4), /* mark */
|
---|
| 13 | SH_ERR_ERR = (1 << 5), /* error */
|
---|
| 14 | SH_ERR_SEVERE = (1 << 6), /* crit */
|
---|
| 15 | SH_ERR_FATAL = (1 << 7), /* alert */
|
---|
| 16 |
|
---|
| 17 | SH_ERR_NOT = (1 << 8),
|
---|
| 18 | SH_ERR_INET = (1 << 9),
|
---|
| 19 | SH_ERR_MAX = (1 << 9)
|
---|
| 20 | } ShErrLevel;
|
---|
| 21 |
|
---|
| 22 | /* this function should be called to report an error
|
---|
| 23 | */
|
---|
[170] | 24 | void sh_error_handle (int flag, const char * file, long line,
|
---|
[1] | 25 | long errnum, unsigned long msg_index, ...);
|
---|
| 26 |
|
---|
| 27 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.