Error Codes for Net Classes
This commit is contained in:
parent
205beaa8ad
commit
e12e5655f9
@ -13,7 +13,7 @@
|
|||||||
File: ZE_ZError.h <br>
|
File: ZE_ZError.h <br>
|
||||||
Description: Header file for ZEngine Error Object. <br>
|
Description: Header file for ZEngine Error Object. <br>
|
||||||
Author(s): James Turk <br>
|
Author(s): James Turk <br>
|
||||||
$Id: ZE_ZError.h,v 1.6 2003/02/10 04:40:16 cozman Exp $<br>
|
$Id: ZE_ZError.h,v 1.7 2003/03/01 20:42:52 cozman Exp $<br>
|
||||||
|
|
||||||
\file ZE_ZError.h
|
\file ZE_ZError.h
|
||||||
\brief Definition file for ZError.
|
\brief Definition file for ZError.
|
||||||
@ -44,6 +44,7 @@ enum ZErrorCode
|
|||||||
ZERR_SDL_INIT, /*!< Error Initializing SDL. */
|
ZERR_SDL_INIT, /*!< Error Initializing SDL. */
|
||||||
ZERR_MIX_INIT, /*!< Error Initializing SDL_mixer. */
|
ZERR_MIX_INIT, /*!< Error Initializing SDL_mixer. */
|
||||||
ZERR_TTF_INIT, /*!< Error Initializing SDL_ttf. */
|
ZERR_TTF_INIT, /*!< Error Initializing SDL_ttf. */
|
||||||
|
ZERR_NET_INIT, /*!< Error Initializing SDL_net. */
|
||||||
ZERR_VIDMODE, /*!< Error setting up the display. */
|
ZERR_VIDMODE, /*!< Error setting up the display. */
|
||||||
ZERR_LOAD_IMAGE, /*!< Error loading an image. */
|
ZERR_LOAD_IMAGE, /*!< Error loading an image. */
|
||||||
ZERR_LOAD_SOUND, /*!< Error loading a sound sample. */
|
ZERR_LOAD_SOUND, /*!< Error loading a sound sample. */
|
||||||
@ -53,6 +54,9 @@ enum ZErrorCode
|
|||||||
ZERR_NOSOUND, /*!< Error trying to use a ZSound without properly loading a sound. */
|
ZERR_NOSOUND, /*!< Error trying to use a ZSound without properly loading a sound. */
|
||||||
ZERR_NOMUSIC, /*!< Error trying to use a ZMusic without properly loading music. */
|
ZERR_NOMUSIC, /*!< Error trying to use a ZMusic without properly loading music. */
|
||||||
ZERR_NOFONT, /*!< Error trying to use a ZFont without properly loading a font. */
|
ZERR_NOFONT, /*!< Error trying to use a ZFont without properly loading a font. */
|
||||||
|
ZERR_NOSOCKET, /*!< Error trying to use a ZClient without having an open socket. */
|
||||||
|
ZERR_NET_CLIENT, /*!< Error using SDL_net in ZClient. */
|
||||||
|
ZERR_NET_SERVER, /*!< Error using SDL_net in ZClient. */
|
||||||
ZERR_LAST /*!< Value used as range index, not a valid error code. */
|
ZERR_LAST /*!< Value used as range index, not a valid error code. */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
File: ZE_ZError.cpp <br>
|
File: ZE_ZError.cpp <br>
|
||||||
Description: Implementation source file for core ZEngine Error Object. <br>
|
Description: Implementation source file for core ZEngine Error Object. <br>
|
||||||
Author(s): James Turk <br>
|
Author(s): James Turk <br>
|
||||||
$Id: ZE_ZError.cpp,v 1.4 2003/02/10 04:40:30 cozman Exp $<br>
|
$Id: ZE_ZError.cpp,v 1.5 2003/03/01 20:43:41 cozman Exp $<br>
|
||||||
|
|
||||||
\file ZE_ZError.cpp
|
\file ZE_ZError.cpp
|
||||||
\brief Source file for ZError.
|
\brief Source file for ZError.
|
||||||
@ -39,6 +39,7 @@ void ZError::CreateStringTable()
|
|||||||
sErrorDesc[ZERR_SDL_INIT] = "Error Initializing SDL: %s";
|
sErrorDesc[ZERR_SDL_INIT] = "Error Initializing SDL: %s";
|
||||||
sErrorDesc[ZERR_MIX_INIT] = "Error Initializing SDL_mixer: %s";
|
sErrorDesc[ZERR_MIX_INIT] = "Error Initializing SDL_mixer: %s";
|
||||||
sErrorDesc[ZERR_TTF_INIT] = "Error Initializing SDL_ttf: %s";
|
sErrorDesc[ZERR_TTF_INIT] = "Error Initializing SDL_ttf: %s";
|
||||||
|
sErrorDesc[ZERR_NET_INIT] = "Error Initializing SDL_net: %s";
|
||||||
sErrorDesc[ZERR_VIDMODE] = "Error Creating Display: %s";
|
sErrorDesc[ZERR_VIDMODE] = "Error Creating Display: %s";
|
||||||
sErrorDesc[ZERR_LOAD_IMAGE] = "Failed to load Image: %s";
|
sErrorDesc[ZERR_LOAD_IMAGE] = "Failed to load Image: %s";
|
||||||
sErrorDesc[ZERR_LOAD_SOUND] = "Failed to load Sound: %s";
|
sErrorDesc[ZERR_LOAD_SOUND] = "Failed to load Sound: %s";
|
||||||
@ -48,6 +49,9 @@ void ZError::CreateStringTable()
|
|||||||
sErrorDesc[ZERR_NOSOUND] = "Called ZSound::%s with no Sound loaded.";
|
sErrorDesc[ZERR_NOSOUND] = "Called ZSound::%s with no Sound loaded.";
|
||||||
sErrorDesc[ZERR_NOMUSIC] = "Called ZMusic::%s with no Music loaded.";
|
sErrorDesc[ZERR_NOMUSIC] = "Called ZMusic::%s with no Music loaded.";
|
||||||
sErrorDesc[ZERR_NOFONT] = "Called ZFont::%s with no Font loaded.";
|
sErrorDesc[ZERR_NOFONT] = "Called ZFont::%s with no Font loaded.";
|
||||||
|
sErrorDesc[ZERR_NOSOCKET] = "Called ZClient::%s with no open Socket.";
|
||||||
|
sErrorDesc[ZERR_NET_CLIENT] = "ZClient encountered a problem: %s";
|
||||||
|
sErrorDesc[ZERR_NET_SERVER] = "ZServer encountered a problem: %s";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user