#include <ZE_ZError.h>
Public Methods | |
| ZError (ZErrorCode code=ZERR_NONE, string desc="", string file="", int line=0) | |
| Default constructor for ZError. | |
| void | Create (ZErrorCode code, string desc="", string file="", int line=0) |
| Set members of error object. | |
| ZErrorCode | Code () const |
| Get ZErrorCode of error. | |
| string | LogString () const |
| Get formatted string for log file. | |
Protected Attributes | |
| ZErrorCode | rCode |
| Error ID. | |
| string | rDescription |
| Error Description. | |
| string | rFilename |
| File which error occured in. | |
| unsigned int | rLine |
| Line which error occured on. | |
Static Protected Attributes | |
| string | sErrorDesc [ZERR_LAST] |
| Static Array of Error Identifiers. | |
|
||||||||||||||||||||
|
Make new ZError object, by default set rCode to ZERR_NONE with no description.
|
|
||||||||||||||||||||
|
Set new values in ZError object.
|
|
|
Access ZErrorCode of the ZError object.
|
|
|
Return the string to be written to the logfile. Called by ZEngine in LogError. |
|
|
Initial value:
{
"No Error. [%s]",
"SDL Error. [%s]",
"Error Initializing SDL: %s", "Error Initializing SDL_mixer: %s", "Error Initializing SDL_ttf: %s",
"Error Creating Display: %s",
"Failed to load Image: %s", "Failed to load Sound: %s", "Failed to load Music: %s", "Failed to load Font: %s",
"Called ZImage::%s with no Image loaded.", "Called ZSound::%s with no Sound loaded.",
"Called ZMusic::%s with no Music loaded.", "Called ZFont::%s with no Font loaded."
}
|
1.3-rc2