diff options
| author | Gaspar Fernandez <gaspar.fernandez@totaki.com> | 2016-08-12 01:29:28 +0200 |
|---|---|---|
| committer | Gaspar Fernandez <gaspar.fernandez@totaki.com> | 2016-08-12 01:29:28 +0200 |
| commit | e463cfd3cbd419dc38583fe25b93be36b330a606 (patch) | |
| tree | add192be35a2e37ace95ee6f33a0a65d612dad9b /src/errors.h | |
| parent | f5932870164b72d2a67352495f3062f31f1fc5fd (diff) | |
| download | dwgo-e463cfd3cbd419dc38583fe25b93be36b330a606.tar.gz dwgo-e463cfd3cbd419dc38583fe25b93be36b330a606.tar.bz2 dwgo-e463cfd3cbd419dc38583fe25b93be36b330a606.zip | |
Version 0.4d
Diffstat (limited to 'src/errors.h')
| -rw-r--r-- | src/errors.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h new file mode 100644 index 0000000..b0b4ab4 --- /dev/null +++ b/src/errors.h @@ -0,0 +1,30 @@ +#ifndef _ERRORS_CPP_ +#define _ERRORS_CPP_ +#include <string> +#define OKAY 0 + +#define ERR_NODISPLAY 1001 // Could not open display +#define ERR_XPMERROR 1003 // Error Creating Pixmap +#define ERR_BADFONT 1004 // Error loading desired font +#define ERR_BADSTTEMP 1005 // Default Sttemp not defined +#define ERR_CFGNOTFOUND 1006 // Configuration file not found +#define ERR_BADDFTCLR 1007 // Bad default Text color +#define ERR_BADDFICLR 1008 // Bad default tIme color +#define ERR_BADDFECLR 1009 // Bad default tEmp color +#define ERR_NOCFGFILE 1010 // Can't locate configuration file + +#define VERB_NONE 0 // No verbose +#define VERB_CRITICAL 100 // Just critical complains +#define VERB_WARNING 1000 // Critical complains + Warnings +#define VERB_NOTICE 10000 // Critical complains + Warnings + Notices +#define VERB_ASTTO 100000 // Any single thing that occurs. Verbose everything + +#define DEFAULT_VERBOSE VERB_ASTTO // Default verbose, modify wich -v + +using namespace std; +void error_handler (int err_code, char *add_string); +void verbsth (int level, const char *msg); +void verbsth (int level, string msg); +bool file_exists( const char *name ); + +#endif |
