// default_error_handling.h - definitions of errors and
//                            declaration of a standard handler
//                            for cases when you don't want or
//                            need to write your own.

#ifndef __default_error_handling_h__
#define __default_error_handling_h__

//------------------------------------------------------------
#define INTERNAL_ERROR             1
#define OUT_OF_MEMORY              2
#define ILLEGAL_ARGUMENTS          3
#define ILLEGAL_TYPE               4
#define ELEMENT_NOT_EXISTING       5
#define DUPLICATE_KEY              6
#define INDEX_OUT_OF_BOUNDS        7
#define MAX_ERROR_CODE             INDEX_OUT_OF_BOUNDS

//------------------------------------------------------------
void defaultErrorHandler(int error_type,void *special);


#endif // __default_error_handling_h__

