removed SDL_net errors
This commit is contained in:
parent
7380b68519
commit
26287eaf9c
@ -14,7 +14,7 @@
|
||||
|
||||
Definition file for ZError, the Error logging class for ZEngine.
|
||||
This class should never be used by the average user, it is used by ZEngine to store information on an error.
|
||||
<br>$Id: ZE_ZError.h,v 1.13 2003/07/05 00:40:45 cozman Exp $<br>
|
||||
<br>$Id: ZE_ZError.h,v 1.14 2003/08/31 18:34:38 cozman Exp $<br>
|
||||
\author James Turk
|
||||
**/
|
||||
|
||||
@ -40,7 +40,6 @@ enum ZErrorCode
|
||||
ZERR_SDL_INIT, /*!< Error Initializing SDL. */
|
||||
ZERR_MIX_INIT, /*!< Error Initializing SDL_mixer. */
|
||||
ZERR_TTF_INIT, /*!< Error Initializing SDL_ttf. */
|
||||
ZERR_NET_INIT, /*!< Error Initializing SDL_net. */
|
||||
ZERR_VIDMODE, /*!< Error setting up the display. */
|
||||
ZERR_LOAD_IMAGE, /*!< Error loading an image. */
|
||||
ZERR_LOAD_SOUND, /*!< Error loading a sound sample. */
|
||||
@ -50,9 +49,6 @@ enum ZErrorCode
|
||||
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_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. */
|
||||
};
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
\brief Source file for ZError.
|
||||
|
||||
Implementation of ZError, the ZEngine internal error information storage class.
|
||||
<br>$Id: ZE_ZError.cpp,v 1.11 2003/07/05 00:40:45 cozman Exp $<br>
|
||||
<br>$Id: ZE_ZError.cpp,v 1.12 2003/08/31 18:34:38 cozman Exp $<br>
|
||||
\author James Turk
|
||||
**/
|
||||
|
||||
@ -32,7 +32,6 @@ void ZError::CreateStringTable()
|
||||
sErrorDesc[ZERR_SDL_INIT] = "Error Initializing SDL: %s";
|
||||
sErrorDesc[ZERR_MIX_INIT] = "Error Initializing SDL_mixer: %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_LOAD_IMAGE] = "Failed to load Image: %s";
|
||||
sErrorDesc[ZERR_LOAD_SOUND] = "Failed to load Sound: %s";
|
||||
@ -42,9 +41,6 @@ void ZError::CreateStringTable()
|
||||
sErrorDesc[ZERR_NOSOUND] = "Called ZSound::%s with no Sound loaded.";
|
||||
sErrorDesc[ZERR_NOMUSIC] = "Called ZMusic::%s with no Music 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";
|
||||
}
|
||||
|
||||
ZError::ZError(ZErrorCode code, std::string desc, std::string file, int line) :
|
||||
|
Loading…
Reference in New Issue
Block a user