From e463cfd3cbd419dc38583fe25b93be36b330a606 Mon Sep 17 00:00:00 2001 From: Gaspar Fernandez Date: Fri, 12 Aug 2016 01:29:28 +0200 Subject: Version 0.4d --- src/errors.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/errors.h (limited to 'src/errors.h') 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 +#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 -- cgit v1.2.1