grpc_2impl_2codegen_2status_8h.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.6"/>
  7. <title>GRPC C++: include/grpc/impl/codegen/status.h File Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/search.js"></script>
  13. <script type="text/javascript">
  14. $(document).ready(function() { searchBox.OnSelectItem(0); });
  15. </script>
  16. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  17. </head>
  18. <body>
  19. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  20. <div id="titlearea">
  21. <table cellspacing="0" cellpadding="0">
  22. <tbody>
  23. <tr style="height: 56px;">
  24. <td style="padding-left: 0.5em;">
  25. <div id="projectname">GRPC C++
  26. &#160;<span id="projectnumber">1.4.0</span>
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.6 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  42. <li><a href="modules.html"><span>Modules</span></a></li>
  43. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  44. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  45. <li class="current"><a href="files.html"><span>Files</span></a></li>
  46. <li>
  47. <div id="MSearchBox" class="MSearchBoxInactive">
  48. <span class="left">
  49. <img id="MSearchSelect" src="search/mag_sel.png"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. alt=""/>
  53. <input type="text" id="MSearchField" value="Search" accesskey="S"
  54. onfocus="searchBox.OnSearchFieldFocus(true)"
  55. onblur="searchBox.OnSearchFieldFocus(false)"
  56. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  57. </span><span class="right">
  58. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  59. </span>
  60. </div>
  61. </li>
  62. </ul>
  63. </div>
  64. <div id="navrow2" class="tabs2">
  65. <ul class="tablist">
  66. <li><a href="files.html"><span>File&#160;List</span></a></li>
  67. <li><a href="globals.html"><span>Globals</span></a></li>
  68. </ul>
  69. </div>
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark">&#160;</span>Pages</a></div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div id="nav-path" class="navpath">
  83. <ul>
  84. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9d7a14d6d9adcbe4c35dbdb88d867e2e.html">grpc</a></li><li class="navelem"><a class="el" href="dir_4b3e2ed696753daba329e2683e0f6479.html">impl</a></li><li class="navelem"><a class="el" href="dir_7a167954ab48275cc692d783196d1f28.html">codegen</a></li> </ul>
  85. </div>
  86. </div><!-- top -->
  87. <div class="header">
  88. <div class="summary">
  89. <a href="#enum-members">Enumerations</a> </div>
  90. <div class="headertitle">
  91. <div class="title">status.h File Reference</div> </div>
  92. </div><!--header-->
  93. <div class="contents">
  94. <p><a href="grpc_2impl_2codegen_2status_8h_source.html">Go to the source code of this file.</a></p>
  95. <table class="memberdecls">
  96. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
  97. Enumerations</h2></td></tr>
  98. <tr class="memitem:a35ab2a68917eb836de84cb23253108eb"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eb">grpc_status_code</a> { <br/>
  99. &#160;&#160;<a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba9da5601150b267ab5509d151fa7df201">GRPC_STATUS_OK</a> = 0,
  100. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba30e6e0c37df1389dd4c460a53f831038">GRPC_STATUS_CANCELLED</a> = 1,
  101. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba5f02c0e431162618ab422d27fd39dd08">GRPC_STATUS_UNKNOWN</a> = 2,
  102. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba3dd64296110db7e7fafb1062b5587731">GRPC_STATUS_INVALID_ARGUMENT</a> = 3,
  103. <br/>
  104. &#160;&#160;<a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba5451711361db6b8d8e80be30cbb1a208">GRPC_STATUS_DEADLINE_EXCEEDED</a> = 4,
  105. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108ebafdf14cb6f2da868d76b209ac490c14e2">GRPC_STATUS_NOT_FOUND</a> = 5,
  106. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108ebad357565db8655b6635fae96a11c4009b">GRPC_STATUS_ALREADY_EXISTS</a> = 6,
  107. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba4149925007957bf1a04184d88e8293f4">GRPC_STATUS_PERMISSION_DENIED</a> = 7,
  108. <br/>
  109. &#160;&#160;<a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba1a6fd47361ad9298879dd8760ca1a0cb">GRPC_STATUS_UNAUTHENTICATED</a> = 16,
  110. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108ebab1a76cb91e6992f6f7a31a7fe862e0e9">GRPC_STATUS_RESOURCE_EXHAUSTED</a> = 8,
  111. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba503abd183544b43a83bc01d999adda5f">GRPC_STATUS_FAILED_PRECONDITION</a> = 9,
  112. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba3570bc43d5eb08c95a7f4c24c13010d9">GRPC_STATUS_ABORTED</a> = 10,
  113. <br/>
  114. &#160;&#160;<a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108ebacd0d05ab2f0af48b0f535c3dd0816d9b">GRPC_STATUS_OUT_OF_RANGE</a> = 11,
  115. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba6912537b4dfd1030f50ff2f5448f1bc2">GRPC_STATUS_UNIMPLEMENTED</a> = 12,
  116. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108ebae648dab84c58ef5b1cfeea35867c4520">GRPC_STATUS_INTERNAL</a> = 13,
  117. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108ebaad91b67998cb5df7bc6821e362189e79">GRPC_STATUS_UNAVAILABLE</a> = 14,
  118. <br/>
  119. &#160;&#160;<a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eba275db05856f4af884c48e86440414db7">GRPC_STATUS_DATA_LOSS</a> = 15,
  120. <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108ebab924d4c4c646bdb3130162b8e359dd96">GRPC_STATUS__DO_NOT_USE</a> = -1
  121. <br/>
  122. }</td></tr>
  123. <tr class="separator:a35ab2a68917eb836de84cb23253108eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. </table>
  125. <h2 class="groupheader">Enumeration Type Documentation</h2>
  126. <a class="anchor" id="a35ab2a68917eb836de84cb23253108eb"></a>
  127. <div class="memitem">
  128. <div class="memproto">
  129. <table class="memname">
  130. <tr>
  131. <td class="memname">enum <a class="el" href="grpc_2impl_2codegen_2status_8h.html#a35ab2a68917eb836de84cb23253108eb">grpc_status_code</a></td>
  132. </tr>
  133. </table>
  134. </div><div class="memdoc">
  135. <table class="fieldtable">
  136. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba9da5601150b267ab5509d151fa7df201"></a>GRPC_STATUS_OK</em>&#160;</td><td class="fielddoc">
  137. <p>Not an error; returned on success. </p>
  138. </td></tr>
  139. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba30e6e0c37df1389dd4c460a53f831038"></a>GRPC_STATUS_CANCELLED</em>&#160;</td><td class="fielddoc">
  140. <p>The operation was cancelled (typically by the caller). </p>
  141. </td></tr>
  142. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba5f02c0e431162618ab422d27fd39dd08"></a>GRPC_STATUS_UNKNOWN</em>&#160;</td><td class="fielddoc">
  143. <p>Unknown error. </p>
  144. <p>An example of where this error may be returned is if a Status value received from another address space belongs to an error-space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error. </p>
  145. </td></tr>
  146. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba3dd64296110db7e7fafb1062b5587731"></a>GRPC_STATUS_INVALID_ARGUMENT</em>&#160;</td><td class="fielddoc">
  147. <p>Client specified an invalid argument. </p>
  148. <p>Note that this differs from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name). </p>
  149. </td></tr>
  150. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba5451711361db6b8d8e80be30cbb1a208"></a>GRPC_STATUS_DEADLINE_EXCEEDED</em>&#160;</td><td class="fielddoc">
  151. <p>Deadline expired before operation could complete. </p>
  152. <p>For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. </p>
  153. </td></tr>
  154. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108ebafdf14cb6f2da868d76b209ac490c14e2"></a>GRPC_STATUS_NOT_FOUND</em>&#160;</td><td class="fielddoc">
  155. <p>Some requested entity (e.g., file or directory) was not found. </p>
  156. </td></tr>
  157. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108ebad357565db8655b6635fae96a11c4009b"></a>GRPC_STATUS_ALREADY_EXISTS</em>&#160;</td><td class="fielddoc">
  158. <p>Some entity that we attempted to create (e.g., file or directory) already exists. </p>
  159. </td></tr>
  160. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba4149925007957bf1a04184d88e8293f4"></a>GRPC_STATUS_PERMISSION_DENIED</em>&#160;</td><td class="fielddoc">
  161. <p>The caller does not have permission to execute the specified operation. </p>
  162. <p>PERMISSION_DENIED must not be used for rejections caused by exhausting some resource (use RESOURCE_EXHAUSTED instead for those errors). PERMISSION_DENIED must not be used if the caller can not be identified (use UNAUTHENTICATED instead for those errors). </p>
  163. </td></tr>
  164. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba1a6fd47361ad9298879dd8760ca1a0cb"></a>GRPC_STATUS_UNAUTHENTICATED</em>&#160;</td><td class="fielddoc">
  165. <p>The request does not have valid authentication credentials for the operation. </p>
  166. </td></tr>
  167. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108ebab1a76cb91e6992f6f7a31a7fe862e0e9"></a>GRPC_STATUS_RESOURCE_EXHAUSTED</em>&#160;</td><td class="fielddoc">
  168. <p>Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. </p>
  169. </td></tr>
  170. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba503abd183544b43a83bc01d999adda5f"></a>GRPC_STATUS_FAILED_PRECONDITION</em>&#160;</td><td class="fielddoc">
  171. <p>Operation was rejected because the system is not in a state required for the operation's execution. </p>
  172. <p>For example, directory to be deleted may be non-empty, an rmdir operation is applied to a non-directory, etc.</p>
  173. <p>A litmus test that may help a service implementor in deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE: (a) Use UNAVAILABLE if the client can retry just the failing call. (b) Use ABORTED if the client should retry at a higher-level (e.g., restarting a read-modify-write sequence). (c) Use FAILED_PRECONDITION if the client should not retry until the system state has been explicitly fixed. E.g., if an "rmdir" fails because the directory is non-empty, FAILED_PRECONDITION should be returned since the client should not retry unless they have first fixed up the directory by deleting files from it. (d) Use FAILED_PRECONDITION if the client performs conditional REST Get/Update/Delete on a resource and the resource on the server does not match the condition. E.g., conflicting read-modify-write on the same resource. </p>
  174. </td></tr>
  175. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba3570bc43d5eb08c95a7f4c24c13010d9"></a>GRPC_STATUS_ABORTED</em>&#160;</td><td class="fielddoc">
  176. <p>The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc. </p>
  177. <p>See litmus test above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE. </p>
  178. </td></tr>
  179. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108ebacd0d05ab2f0af48b0f535c3dd0816d9b"></a>GRPC_STATUS_OUT_OF_RANGE</em>&#160;</td><td class="fielddoc">
  180. <p>Operation was attempted past the valid range. </p>
  181. <p>E.g., seeking or reading past end of file.</p>
  182. <p>Unlike INVALID_ARGUMENT, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate INVALID_ARGUMENT if asked to read at an offset that is not in the range [0,2^32-1], but it will generate OUT_OF_RANGE if asked to read from an offset past the current file size.</p>
  183. <p>There is a fair bit of overlap between FAILED_PRECONDITION and OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific error) when it applies so that callers who are iterating through a space can easily look for an OUT_OF_RANGE error to detect when they are done. </p>
  184. </td></tr>
  185. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba6912537b4dfd1030f50ff2f5448f1bc2"></a>GRPC_STATUS_UNIMPLEMENTED</em>&#160;</td><td class="fielddoc">
  186. <p>Operation is not implemented or not supported/enabled in this service. </p>
  187. </td></tr>
  188. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108ebae648dab84c58ef5b1cfeea35867c4520"></a>GRPC_STATUS_INTERNAL</em>&#160;</td><td class="fielddoc">
  189. <p>Internal errors. </p>
  190. <p>Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken. </p>
  191. </td></tr>
  192. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108ebaad91b67998cb5df7bc6821e362189e79"></a>GRPC_STATUS_UNAVAILABLE</em>&#160;</td><td class="fielddoc">
  193. <p>The service is currently unavailable. </p>
  194. <p>This is a most likely a transient condition and may be corrected by retrying with a backoff.</p>
  195. <p>WARNING: Although data MIGHT not have been transmitted when this status occurs, there is NOT A GUARANTEE that the server has not seen anything. So in general it is unsafe to retry on this status code if the call is non-idempotent.</p>
  196. <p>See litmus test above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE. </p>
  197. </td></tr>
  198. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108eba275db05856f4af884c48e86440414db7"></a>GRPC_STATUS_DATA_LOSS</em>&#160;</td><td class="fielddoc">
  199. <p>Unrecoverable data loss or corruption. </p>
  200. </td></tr>
  201. <tr><td class="fieldname"><em><a class="anchor" id="a35ab2a68917eb836de84cb23253108ebab924d4c4c646bdb3130162b8e359dd96"></a>GRPC_STATUS__DO_NOT_USE</em>&#160;</td><td class="fielddoc">
  202. <p>Force users to include a default branch: </p>
  203. </td></tr>
  204. </table>
  205. </div>
  206. </div>
  207. </div><!-- contents -->
  208. <!-- start footer part -->
  209. <hr class="footer"/><address class="footer"><small>
  210. Generated on Wed Jun 21 2017 14:13:07 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  211. <img class="footer" src="doxygen.png" alt="doxygen"/>
  212. </a> 1.8.6
  213. </small></address>
  214. </body>
  215. </html>