1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
8<title>DWC_GetLastError</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__error_8h_1e28843471b163eb88af3d202726e329c"></a>
14<h1 align="left">DWC_GetLastError</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE><a href=Macro.html#dwc__error_8h_1c049360b665a730f7f639f014a4fed19>DWCError</a> <a href=DWC_GetLastError.html#dwc__error_8h_1e28843471b163eb88af3d202726e329c>DWC_GetLastError</a>(int *errorCode);</CODE></PRE></dd>
22</dl>
23
24<h2>Arguments</h2>
25
26<TABLE border="1" width="100%">
27  <TBODY>
28
29    <TR>
30<TD width="13%"><EM><STRONG>errorCode</STRONG></EM></TD>
31<TD width="87%">Pointer to the error code storage location. Pass <CODE>NULL</CODE> if not needed.</TD>
32    </TR>
33
34  </TBODY>
35</TABLE>
36
37<h2>Return Values</h2>
38
39<p>Error type.</p>
40
41<H2>Description</H2>
42<p>If the DWC library goes into an error state, it stops accepting most functions. In order to recover from an error state, call the <CODE><a href="DWC_ClearError.html">DWC_ClearError</a></CODE> function after executing the appropriate error handling process.</p><p>The error code that should be displayed when the application generates an error is returned to the buffer indicated by the pointer to the error code storage destination. Because the error code is returned as a negative value, invert the sign to make it positive before displaying it onscreen. However, if the error code is 0 or the error process type is <a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ec7fd11b5dbab905e8c567a552c1f8ded0><CODE>DWC_ETYPE_LIGHT</CODE></a>, only the game-specific display is required and the error code does not need to be displayed.</p><p>We recommend the use of <A href="DWC_GetLastErrorEx.html"><CODE>DWC_GetLastErrorEx</CODE></a> function, which simultaneously obtains the error type (<CODE>errorType</CODE>).</p><p><h3>Error Codes (errorCode)</h3></p><p><h3>Error Codes related to the GameSpy SDK (-60000 to -99999)</h3></p><p>Error codes related to the GameSpy SDK (the library that uses the GameSpy server features) are expressed by adding the following three values:</p><p>(sequence in which error processing has occurred) + (the type of GameSpy SDK that generated the error) + (detailed error information)</p><p>GameSpy SDK-related errors will not occur when the FriendsMatch library is not used.</p><p><h3>Sequence in which error processing has occurred</h3></p><p><table border="1"><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bb25162c7b07a7863802bdb39e0ec86e0>DWC_ECODE_SEQ_LOGIN</a><br></td><td><br>-60000<br></td><td><br>Error during login processing.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b9ae1fa83e52ac7a2db748c4ab8600a1f>DWC_ECODE_SEQ_FRIEND</a><br></td><td><br>-70000<br></td><td><br>Error during friend management processing.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b1a3ce0156367e5631eb62a75478ddc77>DWC_ECODE_SEQ_MATCH</a><br></td><td><br>-80000<br></td><td><br>Error during the matchmaking process.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b4355e572d0b2feafb44ac8db91816457>DWC_ECODE_SEQ_ETC</a><br></td><td><br>-90000<br></td><td><br>Error during processing other than that listed above.<br></td></tr></table></p><p><h3>Type of GameSpy SDK that generated the error</h3></p><p><table border="1"><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55be1d42b6de941b5a6436f3f945d65fb56>DWC_ECODE_GS_GP</a><br></td><td><br>-1000<br></td><td><br>GameSpy<br></td><td><br>GP error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bdb709e825bfa3fe1b4b9f822142f4659>DWC_ECODE_GS_PERS</a><br></td><td><br>-2000<br></td><td><br>GameSpy<br></td><td><br>Persistent error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bc3dbd15c6cf9d605142840dde40a9cdc>DWC_ECODE_GS_STATS</a><br></td><td><br>-3000<br></td><td><br>GameSpy<br></td><td><br>Stats error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b951cfc013aaf2528a5d8673461552fc3>DWC_ECODE_GS_QR2</a><br></td><td><br>-4000<br></td><td><br>GameSpy<br></td><td><br>QR2 error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b38692e125d5b78a7efbd658ca1c3c2b4>DWC_ECODE_GS_SB</a><br></td><td><br>-5000<br></td><td><br>GameSpy<br></td><td><br>ServerBrowsing error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b4bed84cfaef83394bee6bb9d674ef8a0>DWC_ECODE_GS_NN</a><br></td><td><br>-6000<br></td><td><br>GameSpy<br></td><td><br>NatNegotiation error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55be0b2e48dff388d70436b9da09a6f9895>DWC_ECODE_GS_GT2</a><br></td><td><br>-7000<br></td><td><br>GameSpy<br></td><td><br>gt2 error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b9988e3bc0309c8b71db13307d515aaac>DWC_ECODE_GS_HTTP</a><br></td><td><br>-8000<br></td><td><br>GameSpy<br></td><td><br>HTTP error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b3889841e79066a4780b66bfb69231dc2>DWC_ECODE_GS_ETC</a><br></td><td><br>-9000<br></td><td><br>GameSpy<br></td><td><br>Other SDK error.<br></td></tr></table></p><p><h3>Detailed error information</h3></p><p><table border="1"><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55beed71b7a0612aabeb1fcb4535d4d1b5c>DWC_ECODE_TYPE_NETWORK</a><br></td><td><br>-10<br></td><td><br>Network failure.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b1f52e7213dd808abfba6662420482435>DWC_ECODE_TYPE_SERVER</a><br></td><td><br>-20<br></td><td><br>GameSpy server failure.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b911cfd1ec53d711f4b24fd6d1d6919c4>DWC_ECODE_TYPE_DNS</a><br></td><td><br>-30<br></td><td><br>DNS failure.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b5b29522a27bf101120474c2d74705644>DWC_ECODE_TYPE_DATA</a><br></td><td><br>-40<br></td><td><br>Received invalid data.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b6bd0dce514e9f980b7145a78629711a0>DWC_ECODE_TYPE_SOCKET</a><br></td><td><br>-50<br></td><td><br>Socket communication error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55be30dafc835b61623c18d722a0271ab2b>DWC_ECODE_TYPE_BIND</a><br></td><td><br>-60<br></td><td><br>Socket bind error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b4f3b2093309c78deb77dd679af4cda2d>DWC_ECODE_TYPE_TIMEOUT</a><br></td><td><br>-70<br></td><td><br>Timeout has occurred.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b9b19f2da4842ccd2848282ab86ec5114>DWC_ECODE_TYPE_PEER</a><br></td><td><br>-80<br></td><td><br>Problem with one-on-one communication.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b632caf904856b16d779cb9662377469a>DWC_ECODE_TYPE_CONN_OVER</a><br></td><td><br>-100<br></td><td><br>Exceeded the number of connections.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bc8aedbb521a2455d22e599636c9966be>DWC_ECODE_TYPE_STATS_AUTH</a><br></td><td><br>-200<br></td><td><br>STATS server login error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b57afb64796b4e924477ef4c007c28fcc>DWC_ECODE_TYPE_STATS_LOAD</a><br></td><td><br>-210<br></td><td><br>STATS server data load error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b2a9a9bd458dc6289baa03f01f5c5531b>DWC_ECODE_TYPE_STATS_SAVE</a><br></td><td><br>-220<br></td><td><br>STATS server data save error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b304445ed2238e797129a85750465a991>DWC_ECODE_TYPE_NOT_FRIEND</a><br></td><td><br>-400<br></td><td><br>The specified partner is not a mutually registered friend.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b763761b8a59f4e7823e86b1d2a4abbc4>DWC_ECODE_TYPE_OTHER</a><br></td><td><br>-410<br></td><td><br>The partner disconnected communications (usually occurs during server-client matchmaking).<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b754217c11b786f830f826cdf418bee9d>DWC_ECODE_TYPE_MUCH_FAILURE</a><br></td><td><br>-420<br></td><td><br>Failed NAT negotiations for the specified number of times.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b5070c3d7ac3970b388236651d1019b44>DWC_ECODE_TYPE_SC_CL_FAIL</a><br></td><td><br>-430<br></td><td><br>The server-client matchmaking client DS failed to connect.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b97fe602b493199613df02320478b4174>DWC_ECODE_TYPE_CLOSE</a><br></td><td><br>-600<br></td><td><br>Error while closing connections.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b490ca45e64cde7560af609f493bcb960>DWC_ECODE_TYPE_TRANS_HEADER</a><br></td><td><br>-610<br></td><td><br>Error that occurred when Reliable data was received in an impossible reception state.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b97b316de633dc51bdd71fe46328c1c5b>DWC_ECODE_TYPE_TRANS_BODY</a><br></td><td><br>-620<br></td><td><br>Error related to the reception buffer overflow.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b2738146f27f7913bd3603dfd8044b5c5>DWC_ECODE_TYPE_TRANS_SEND</a><br></td><td><br>-630<br></td><td><br>Error that occurs when Reliable transmission fails.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bf301395f17a1ae6647fec20fdc16d2d4>DWC_ECODE_TYPE_AC_FATAL</a><br></td><td><br>-700<br></td><td><br>The error group at access points during the auto-connect process. In this case, the lower-order digit is a dedicated <CODE>state</CODE> value.</td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b98a6ff13c770d6fa464ae6e7f9dc0edc>DWC_ECODE_TYPE_OPEN_FILE</a><br></td><td><br>-800<br></td><td><br>Failed to open GHTTP file.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55ba56d691646ecf21a178742a93871aa75>DWC_ECODE_TYPE_INVALID_POST</a><br></td><td><br>-810<br></td><td><br>Invalid GHTTP transmission.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b103de5bba43dd7919cbbad355ae540ee>DWC_ECODE_TYPE_REQ_INVALID</a><br></td><td><br>-820<br></td><td><br>GHTTP file name or similar data is invalid.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b51c14b7281232407ff19b292d1560acc>DWC_ECODE_TYPE_UNSPECIFIED</a><br></td><td><br>-830<br></td><td><br>Unspecified GHTTP error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b12a0e3c933d54c838a832685fe83a00e>DWC_ECODE_TYPE_BUFF_OVER</a><br></td><td><br>-840<br></td><td><br>GHTTP buffer overflow.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bfb09157b68a816ae2611baf47d395cd7>DWC_ECODE_TYPE_PARSE_URL</a><br></td><td><br>-850<br></td><td><br>GHTTPURL analysis error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bccb0bc2a0b345da77e110cef11565a86>DWC_ECODE_TYPE_BAD_RESPONSE</a><br></td><td><br>-860<br></td><td><br>Error analyzing the response from the GHTTP server.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b7a9114f849ce1413f4ade5ce7f7f1651>DWC_ECODE_TYPE_REJECTED</a><br></td><td><br>-870<br></td><td><br>Rejection of requests or other messages from a GHTTP server.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b96745c100765a54a11252ea9222b3a97>DWC_ECODE_TYPE_FILE_RW</a><br></td><td><br>-880<br></td><td><br>GHTTP local file read/write error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bd50b921e2a3985f39d64595bf66002a9>DWC_ECODE_TYPE_INCOMPLETE</a><br></td><td><br>-890<br></td><td><br>GHTTP download aborted.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bb8e52ab0c878eccdee1e11b65eef5331>DWC_ECODE_TYPE_TO_BIG</a><br></td><td><br>-900<br></td><td><br>Download not permitted because the GHTTP file is too large.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55ba291abda4a3fbd24638b4ff293b17cdf>DWC_ECODE_TYPE_ENCRYPTION</a><br></td><td><br>-910<br></td><td><br>GHTTP encryption error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bb4a408639a8308f33a1f6ae9da5ed727>DWC_ECODE_TYPE_ALLOC</a><br></td><td><br>-1<br></td><td><br>Failed to allocate memory.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b0a481eac9f93dacc03e79748ff4d0b90>DWC_ECODE_TYPE_PARAM</a><br></td><td><br>-2<br></td><td><br>Parameter error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bc85d050b596e8b47893539bddde87e7f>DWC_ECODE_TYPE_SO_SOCKET</a><br></td><td><br>-3<br></td><td><br>A GameSpy gt2 socket error was caused by an SO error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bb3d2470ce856734ba693a945bfd066c1>DWC_ECODE_TYPE_NOT_INIT</a><br></td><td><br>-4<br></td><td><br>Internet connection has not been initialized.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b7b68eb81e50072a8bd93ce466ec11a6a>DWC_ECODE_TYPE_DUP_INIT</a><br></td><td><br>-5<br></td><td><br>The library has been initialized twice.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b26a0d8dcda6026a40474db112b891c47>DWC_ECODE_TYPE_WM_INIT</a><br></td><td><br>-6<br></td><td><br>Failure to initialize WM.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bd7d64ff603a8cb695c65e49e829f7bdc>DWC_ECODE_TYPE_UNEXPECTED</a><br></td><td><br>-9<br></td><td><br>An unexpected state or an unknown GameSpy error has occurred.<br></td></tr></table></p><p><h3>Error codes related to the Download feature (-31000 to -31999)</h3></p><p>Error codes related to the Download features are expressed by summing the following three values: <br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b783484cc5fe9dba324523a0ae66c399f><CODE>DWC_ECODE_SEQ_ADDINS</CODE></a>(-30000) + <a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b17d282276b3d272577ac63a11a0ed4e9><CODE>DWC_ECODE_FUNC_ND</CODE></a>(-1000) + (detailed error information)</p><p><h3>Detailed error information</h3></p><p><table border="1"><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b4344e5af9005b99c576b03d195ee75ff>DWC_ECODE_TYPE_ND_ALLOC</a><br></td><td><br>-1<br></td><td><br>Failed to allocate memory.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b50e0d679d54525a60927a8acab22483b>DWC_ECODE_TYPE_ND_FATAL</a><br></td><td><br>-9<br></td><td><br>Some other fatal error (not defined above) has occurred.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b9dd05097c466efa38ad727c68e267cff>DWC_ECODE_TYPE_ND_STATE</a><br></td><td><br>-10<br></td><td><br>A function was called in a state in which it cannot be called.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b3b9e69f403f7d4e9a4c4b0a49e89f50d>DWC_ECODE_TYPE_ND_HTTP</a><br></td><td><br>-20<br></td><td><br>HTTP communication failure.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b6d3807e69d93b2666cc3e0d1779c0fa8>DWC_ECODE_TYPE_ND_PARAM</a><br></td><td><br>-30<br></td><td><br>Invalid parameter was passed to the function.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b9b2cab5bf6467079b8676ce52f6beb9b>DWC_ECODE_TYPE_ND_CANCEL</a><br></td><td><br>-40<br></td><td><br>Asynchronous processing has been canceled.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b779050c59f05bf562cd585aee004d3a9>DWC_ECODE_TYPE_ND_SERVER_PARAM</a><br></td><td><br>-101<br></td><td><br>Invalid parameter has been sent to the server.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b0954cffa31cfdb4c8f9ff210c5a51cd6>DWC_ECODE_TYPE_ND_SERVER_SERVICE</a><br></td><td><br>-102<br></td><td><br>Unregistered service.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b33ba919c8ace9d31a065d26a8da4cac2>DWC_ECODE_TYPE_ND_SERVER_INVALIDTOKEN</a><br></td><td><br>-103<br></td><td><br>Illegal token (service locator information).<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55beabb2cb4d9ff92f5ebb8ee9b8b5ae614>DWC_ECODE_TYPE_ND_SERVER_TOKENEXPIRED</a><br></td><td><br>-104<br></td><td><br>Expired token (service locator information).<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b1a8a270a7d24a28aae423bc55b5c6ce5>DWC_ECODE_TYPE_ND_SERVER_NOCONTENTS</a><br></td><td><br>-105<br></td><td><br>No content present.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b59019bd4b2a3b0876522c0aae9f58509>DWC_ECODE_TYPE_ND_SERVER_ATTR</a><br></td><td><br>-106<br></td><td><br>Attribute does not match.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b801ac5862dc7c5f96c15b8cb996d5172>DWC_ECODE_TYPE_ND_SERVER_CONTENTSEXPIRED</a><br></td><td><br>-107<br></td><td><br>Expired content.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55be08390b7f164545cc16708979e1ea4ce>DWC_ECODE_TYPE_ND_SERVER_INVALIDAP</a><br></td><td><br>-108<br></td><td><br>Access from an access point that is not a service target.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55bdf0c6a8f20d526c4219d38df1e3834ba>DWC_ECODE_TYPE_ND_SERVER_DATABASE</a><br></td><td><br>-109<br></td><td><br>Cannot connect to database (problem with the download server).<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b7cb11ee8c54371b29d5ebe72d9e7df07>DWC_ECODE_TYPE_ND_SERVER_PASSWORD</a><br></td><td><br>-110<br></td><td><br>Password does not match.<br></td></tr></table></p><p><h3>Error codes related to the Check for Illegal Character Strings feature (-33000 to -33999)</h3></p><p>Error codes related to the illegal string checks are expressed by summing the following three values. <br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b783484cc5fe9dba324523a0ae66c399f><CODE>DWC_ECODE_SEQ_ADDINS</CODE></a>(-30000) + <a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b2a0e7f75eaeb21e1ea9cd1ac84dc67c4><CODE>DWC_ECODE_FUNC_PROF</CODE></a>(-3000) + (detailed error information)</p><p><h3>Detailed error information</h3></p><p><table border="1"><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b1dde53993b5ad7bef8dfac3323b11726>DWC_ECODE_TYPE_PROF_CONNERR</a><br></td><td><br>-10<br></td><td><br>A problem with connecting to the Authentication server.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55b8bb7b1e1ed36d47a362bbc37deea6191>DWC_ECODE_TYPE_PROF_PARSEERR</a><br></td><td><br>-20<br></td><td><br>A problem with the response from the Authentication server.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_106fc87d81c62e9abb8790b6e5713c55ba043df235b174d9d89cd090a944706ed>DWC_ECODE_TYPE_PROF_OTHERERR</a><br></td><td><br>-30<br></td><td><br>An error has occurred for some other reason.<br></td></tr></table></p><p><h3>Error codes relating to the Authentication server (-20000 to -29999)</h3></p><p>These error codes are related to logging on to the Authentication server and getting the service locator information.</p><p><h3>Error codes related to the Internet connection process (-50000 to -59999)</h3></p><p>The error codes related to the Internet connection process are expressed by summing the following two values: <BR>(detailed error information) + (connection target type)</p><p>For details, see the RevoEx manual.</p><p><h3>Error Process Type (errorType)</h3></p><p>When an error occurs, the error process type (<a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ec><CODE>DWCErrorType</CODE></A>) returns a value that indicates until what point in time the library should be initialized.</p><p><table border="1"><tr><td><br><a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ec1c4e4efe043c01aea23f51816564f208>DWC_ETYPE_NO_ERROR</a><br></td><td><br>No error.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ec7fd11b5dbab905e8c567a552c1f8ded0>DWC_ETYPE_LIGHT</a><br></td><td><br>Only a game-specific display: the error code display is not necessary. To recover, call the <a href=DWC_ClearError.html#dwc__error_8h_1325e43a6b7d8d0a914a044c52e8cfda6><CODE>DWC_ClearError</CODE></a> function.</td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ec28aa2c307d1f494c0c8d85c88843b8bc>DWC_ETYPE_SHOW_ERROR</a><br></td><td><br>Display the error code. To recover, call the <a href=DWC_ClearError.html#dwc__error_8h_1325e43a6b7d8d0a914a044c52e8cfda6><CODE>DWC_ClearError</CODE></a> function.</td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ec2921aab6fee667dbf19f614fbfbb6479>DWC_ETYPE_SHUTDOWN_FM</a><br></td><td>The FriendsMatch library must be shut down by calling the <A href="DWC_ShutdownFriendsMatch.html"><CODE>DWC_ShutdownFriendsMatch</CODE></a> function. Display the error code.</td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ecc93feff488a5a9f62e3670aa98200668>DWC_ETYPE_SHUTDOWN_GHTTP</a><br></td><td><br>Call the following library release functions as needed: <br><a href=DWC_RnkShutdown.html#dwc__ranking_8h_1ebd54c804ee5147f740362c5cb482bfd><CODE>DWC_RnkShutdown</CODE></a> function (General-Purpose Ranking library). <br>*See <STRONG>Note</STRONG> below. Display the error code.<br></td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ec7ca0871d2a61f90c4cd2e75be00eda28>DWC_ETYPE_SHUTDOWN_ND</a><br></td><td>You must call the <A href="DWC_NdCleanupAsync.html"><CODE>DWC_NdCleanupAsync</CODE></a> function and close the download library. Display the error code.</td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ece7fbe686b8425dd25dbb63014eb92862>DWC_ETYPE_DISCONNECT</a><br></td><td><br>Call the following library release functions as needed: <br><a href=DWC_ShutdownFriendsMatch.html#dwc__main_8h_1765b5089893c6d3bf5f3011723b96278><CODE>DWC_ShutdownFriendsMatch</CODE></a> function (FriendsMatch library)<br><a href=DWC_NdCleanupAsync.html#dwc__nd_8h_1b5866639aee7fb3a9d693a1411625ee0><CODE>DWC_NdCleanupAsync</CODE></a> function (Download library)<br><a href=DWC_RnkShutdown.html#dwc__ranking_8h_1ebd54c804ee5147f740362c5cb482bfd><CODE>DWC_RnkShutdown</CODE></a> function (General-Purpose Ranking library) *See <STRONG>Note</STRONG> below.<br>After this, communication must be terminated using <CODE>SOCleanup</CODE>. To use DWC again, it is necessary to call <a href=DWC_Shutdown.html#dwc__init_8h_143947b73e0881bb66acbcf3ce11eaa9d><CODE>DWC_Shutdown</CODE></a> and close DWC once. Display the error code.</td></tr><tr><td><br><a href=Macro.html#dwc__error_8h_168ff183290bdb65d992a516a2496c5ec36d72083baf18ae8b6678ebddba98f14>DWC_ETYPE_FATAL</a><br></td><td><br>Because this is equivalent to <CODE>FatalError</CODE>, prompt the user to turn the power off. Display the error code.</td></tr></table></p><p><BR><B>Note:</B> Because the General-Purpose Ranking library uses the HTTP Communications library, <CODE>DWC_InitGHTTP</CODE> and <CODE>DWC_ShutdownGHTTP</CODE> are called from inside the HTTP Communications library's initialize and exit operations. <BR><B>Note:</B> In the current version, the application cannot use <CODE>DWC_GHTTP</CODE> directly.</p>
43
44<h2>See Also</h2>
45<p>
46
47<CODE><A href="DWC_GetLastErrorEx.html">DWC_GetLastErrorEx</A></CODE>
48
49</p>
50
51<H2>Revision History</H2>
52<DL>
53
54<DT><para>1.4.12</DT>
55<DD>Added detailed description of the error codes.</DD>
56
57<DT><para>1.4.15</DT>
58<DD>To reflect privatization of <CODE>DWC_GHTTP</CODE>, deleted the description of <CODE>DWC_ShutdownGHTTP</CODE>. Corrected an omission in download-related error codes. Added <CODE>DWC_ECODE_TYPE_TRANS_SEND</CODE>.</DD>
59
60<DT><para>1.4.16</DT>
61<DD>Corrected a NitroDWC reference that was present.</DD>
62
63<DT><para>1.4.21</DT>
64<DD>Added a note about the fact that it is necessary to call <CODE>DWC_Shutdown</CODE> when <CODE>DWC_ETYPE_DISCONNECT</CODE> has been generated.</DD>
65
66<DT><para>2.0.0</DT>
67<DD>Specifications have changed so that <CODE>SOFinish</CODE> does not need to be called when a <CODE>DWC_ETYPE_DISCONNECT</CODE> error has been generated.</DD>
68
69</DL>
70<hr><p>CONFIDENTIAL</p></body>
71</html>
72