diff --git a/include/ZE_ZError.h b/include/ZE_ZError.h
index 033e18d..f3d3bf8 100755
--- a/include/ZE_ZError.h
+++ b/include/ZE_ZError.h
@@ -13,7 +13,7 @@
File: ZE_ZError.h
Description: Header file for ZEngine Error Object.
Author(s): James Turk
-$Id: ZE_ZError.h,v 1.6 2003/02/10 04:40:16 cozman Exp $
+$Id: ZE_ZError.h,v 1.7 2003/03/01 20:42:52 cozman Exp $
\file ZE_ZError.h
\brief Definition file for ZError.
@@ -44,6 +44,7 @@ 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. */
@@ -53,6 +54,9 @@ 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. */
};
diff --git a/src/ZE_ZError.cpp b/src/ZE_ZError.cpp
index 95bb151..bbee534 100755
--- a/src/ZE_ZError.cpp
+++ b/src/ZE_ZError.cpp
@@ -13,7 +13,7 @@
File: ZE_ZError.cpp
Description: Implementation source file for core ZEngine Error Object.
Author(s): James Turk
-$Id: ZE_ZError.cpp,v 1.4 2003/02/10 04:40:30 cozman Exp $
+$Id: ZE_ZError.cpp,v 1.5 2003/03/01 20:43:41 cozman Exp $
\file ZE_ZError.cpp
\brief Source file for ZError.
@@ -39,6 +39,7 @@ 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";
@@ -48,6 +49,9 @@ 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";
}
}