GPErrorCode
Error codes which occur in GP processing.
- typedef enum
- {
- // General
- GP_GENERAL = 0x0000,
- GP_PARSE,
- GP_NOT_LOGGED_IN,
- GP_BAD_SESSKEY,
- GP_DATABASE,
- GP_NETWORK,
- GP_FORCED_DISCONNECT,
- GP_CONNECTION_CLOSED,
- // Login
- GP_LOGIN = 0x0100,
- GP_LOGIN_TIMEOUT,
- GP_LOGIN_BAD_NICK,
- GP_LOGIN_BAD_EMAIL,
- GP_LOGIN_BAD_PASSWORD,
- GP_LOGIN_BAD_PROFILE,
- GP_LOGIN_PROFILE_DELETED,
- GP_LOGIN_CONNECTION_FAILED,
- GP_LOGIN_SERVER_AUTH_FAILED,
- GP_LOGIN_BAD_UNIQUENICK,
- GP_LOGIN_BAD_PREAUTH,
// Newuser- GP_NEWUSER= 0x0200,
- GP_NEWUSER_BAD_NICK,
- GP_NEWUSER_BAD_PASSWORD,
- GP_NEWUSER_UNIQUENICK_INVALID,
- GP_NEWUSER_UNIQUENICK_INUSE,
// Update UI- GP_UPDATEUI= 0x0300,
- GP_UPDATEUI_BAD_EMAIL,
// New Profile- GP_NEWPROFILE= 0x0400,
- GP_NEWPROFILE_BAD_NICK,
- GP_NEWPROFILE_BAD_OLD_NICK,
// Update Profile- GP_UPDATEPRO= 0x0500,
- GP_UPDATEPRO_BAD_NICK,
// Add Buddy- GP_ADDBUDDY= 0x0600,
- GP_ADDBUDDY_BAD_FROM,
- GP_ADDBUDDY_BAD_NEW,
- GP_ADDBUDDY_ALREADY_BUDDY,
// Auth Add- GP_AUTHADD= 0x0700,
- GP_AUTHADD_BAD_FROM,
- GP_AUTHADD_BAD_SIG,
// Status- GP_STATUS = 0x0800,
// Buddy Message- GP_BM= 0x0900,
- GP_BM_NOT_BUDDY,
// Get Profile- GP_GETPROFILE= 0x0A00,
- GP_GETPROFILE_BAD_PROFILE,
// Delete Buddy- GP_DELBUDDY= 0x0B00,
- GP_DELBUDDY_NOT_BUDDY,
// Delete Profile- GP_DELPROFILE= 0x0C00,
- GP_DELPROFILE_LAST_PROFILE,
// Search- GP_SEARCH= 0x0D00,
- GP_SEARCH_CONNECTION_FAILED,
- GP_SEARCH_TIMED_OUT,
// Check- GP_CHECK= 0x0E00,
- GP_CHECK_BAD_EMAIL,
- GP_CHECK_BAD_NICK,
- GP_CHECK_BAD_PASSWORD,
>/ Revoke- GP_REVOKE= 0x0F00,
- GP_REVOKE_NOT_BUDDY,
// Register unique nick- GP_REGISTERUNIQUENICK= 0x1000,
- GP_REGISTERUNIQUENICK_TAKEN,
- GP_REGISTERUNIQUENICK_RESERVED,
- GP_REGISTERUNIQUENICK_BAD_NAMESPACE,
// Register cdkey- GP_REGISTERCDKEY= 0x1100,
- GP_REGISTERCDKEY_BAD_KEY,
- GP_REGISTERCDKEY_ALREADY_SET,
- GP_REGISTERCDKEY_ALREADY_TAKEN,
// AddBlock- GP_ADDBLOCK= 0x1200,
- GP_ADDBLOCK_ALREADY_BLOCKED,
//RemoveBlock- GP_REMOVEBLOCK= 0x1300,
- GP_REMOVEBLOCK_NOT_BLOCKED
- } GPErrorCode;
Constants
- GP_GENERAL
- There was an unknown error.
- GP_PARSE
- Unexpected data was received from the server.
- GP_NOT_LOGGED_IN
- The request cannot be processed because user has not logged in.
- GP_BAD_SESSKEY
- The request cannot be processed because of an invalid session key.
- GP_DATABASE
- There was a database error.
- GP_NETWORK
- There was an error connecting a socket.
- GP_FORCED_DISCONNECT
- This profile has been disconnected by another login.
- GP_CONNECTION_CLOSED
- The server has closed the connection.
- GP_LOGIN
- There was an error logging in.
- GP_LOGIN_TIMEOUT
- The login attempt timed out.
- GP_LOGIN_BAD_NICK
- The nickname provided is incorrect.
- GP_LOGIN_BAD_EMAIL
- The e-mail address provided is incorrect.
- GP_LOGIN_BAD_PASSWORD
- The password provided is incorrect.
- GP_LOGIN_BAD_PROFILE
- The profile provided is incorrect.
- GP_LOGIN_PROFILE_DELETED
- The profile has been deleted.
- GP_LOGIN_CONNECTION_FAILED
- The server has refused the connection.
- GP_LOGIN_SERVER_AUTH_FAILED
- Could not authenticate server.
- GP_LOGIN_BAD_UNIQUENICK
- The uniquenick provided is incorrect.
- GP_LOGIN_BAD_PREAUTH
- There was an error validating the pre-authentication.
- GP_NEWUSER
- There was an error creating a new user.
- GP_NEWUSER_BAD_NICK
- A profile with that nick already exists.
- GP_NEWUSER_BAD_PASSWORD
- The password does not match the email address.
- GP_NEWUSER_UNIQUENICK_INVALID
- The uniquenick is invalid.
- GP_NEWUSER_UNIQUENICK_INUSE
- The uniquenick is already in use.
- GP_UPDATEUI
- There was an error updating the user information.
- GP_UPDATEUI_BAD_EMAIL
- A user with the email address provided already exists.
- GP_NEWPROFILE
- There was an error creating a new profile.
- GP_NEWPROFILE_BAD_NICK
- The nickname to be replaced does not exist.
- GP_NEWPROFILE_BAD_OLD_NICK
- A profile with the nickname provided already exists.
- GP_UPDATEPRO
- There was an error updating the profile information.
- GP_UPDATEPRO_BAD_NICK
- A user with the nickname provided already exists.
- GP_ADDBUDDY
- There was an error adding a buddy.
- GP_ADDBUDDY_BAD_FROM
- The profile requesting to add a buddy is invalid.
- GP_ADDBUDDY_BAD_NEW
- The profile requested is invalid.
- GP_ADDBUDDY_ALREADY_BUDDY
- The profile requested is already a buddy.
- GP_AUTHADD
- There was an error authorizing an add buddy request.
- GP_AUTHADD_BAD_FROM
- The profile being authorized is invalid.
- GP_AUTHADD_BAD_SIG
- The signature for the authorization is invalid.
- GP_STATUS
- There was an error with the status string.
- GP_BM
- There was an error sending a buddy message.
- GP_BM_NOT_BUDDY
- The profile the message was to be sent to is not a buddy.
- GP_GETPROFILE
- There was an error getting profile info.
- GP_GETPROFILE_BAD_PROFILE
- The profile info was requested on is invalid.
- GP_DELBUDDY
- There was an error deleting the buddy.
- GP_DELBUDDY_NOT_BUDDY
- The buddy to be deleted is not a buddy.
- GP_DELPROFILE
- There was an error deleting the profile.
- GP_DELPROFILE_LAST_PROFILE
- The last profile cannot be deleted.
- GP_SEARCH
- There was an error searching for a profile.
- GP_SEARCH_CONNECTION_FAILED
- The search attempt failed to connect to the server.
- GP_SEARCH_TIMED_OUT
- The search timed out.
- GP_CHECK
- There was an error checking the user account.
- GP_CHECK_BAD_EMAIL
- No account exists with the provided e-mail address.
- GP_CHECK_BAD_NICK
- No such profile exists for the provided e-mail address.
- GP_CHECK_BAD_PASSWORD
- The password is incorrect.
- GP_REVOKE
- There was an error revoking the buddy.
- GP_REVOKE_NOT_BUDDY
- You are not a buddy of the profile.
- GP_REGISTERUNIQUENICK
- There was an error registering the uniquenick.
- GP_REGISTERUNIQUENICK_TAKEN
- The uniquenick is already taken.
- GP_REGISTERUNIQUENICK_RESERVED
- The uniquenick is reserved.
- GP_REGISTERUNIQUENICK_BAD_NAMESPACE
- Tried to register a nick with no namespace set.
- GP_REGISTERCDKEY
- There was an error registering the cdkey.
- GP_REGISTERCDKEY_BAD_KEY
- The cdkey is invalid.
- GP_REGISTERCDKEY_ALREADY_SET
- The profile has already been registered with a different cdkey.
- GP_REGISTERCDKEY_ALREADY_TAKEN
- The cdkey has already been registered to another profile.
- GP_ADDBLOCK
- There was an error adding the player to the blocked list.
- GP_ADDBLOCK_ALREADY_BLOCKED
- The profile specified is already blocked.
- GP_REMOVEBLOCK
- There was an error removing the player from the blocked list.
- GP_REMOVEBLOCK_NOT_BLOCKED
- The profile specified was not a member of the blocked list.
Section Reference: Gamespy Presence SDK
See Also: gpGetErrorCode, GPErrorArg