#ifndef _GLWEBTOOLS_ERROR_INCLUDED_
#define _GLWEBTOOLS_ERROR_INCLUDED_
namespace glwebtools
{
//! Error definition namespace
enum //Error
{
E_SUCCESS = 0, //!< Operation is successful (no error)
E_UNKNOWN = -100000, //!< An unknown error occured
E_INVALID_HANDLE = -100001, //!< Object is not properly initialized for the operation
E_INVALID_PARAMETER = -100002, //!< Parameter are not valid for the operation
E_INVALID_OPERATION = -100003, //!< The object doesn't allow the operation in its current state
E_OBJECT_BUSY = -100004, //!< Object is busy and cannot allow operation (this error is a specialization of E_INVALID_OPERATION)
E_MEMORY_ERROR = -100005, //!< An memory operation failed and prevent the operation from completing
E_INVALID_DATA = -100006, //!< Internal object data is not valid for current operation
E_INITIALIZATION_ERROR = -100007, //!< Internal object initialization failed
E_TIMEOUT = -100008, //!< Operation has timed out
E_INVALID_CREATION_SETTINGS = -100009, //!< Creation settings are not valid for the initialization
E_TYPE_REGISTRATION_ERROR = -100010, //!< Too many type registered
E_TASK_NOT_FOUND = -100011, //!< Task is not in task group
E_CONNECTION_CANCELLED = -100012, //!< Connection has been cancelled
E_CONNECTION_NOTHREAD = -100013, //!< No thread available to run the connection
E_UNSUPPORTED_PROTOCOL = -100101,
E_URL_MALFORMAT = -100102,
E_TOO_MANY_REDIRECTS = -100103,
E_COULDNT_RESOLVE_HOST = -100104,
E_COULDNT_CONNECT = -100105,
E_SSL_CONNECT_ERROR = -100106
};
typedef int Error;
}
#endif //_GLWEBTOOLS_ERROR_INCLUDED_