mozilla

Revision 119545 of Constants

  • Revision slug: NPAPI/Constants
  • Revision title: Constants
  • Revision id: 119545
  • Created:
  • Creator: Pmash
  • Is current revision? No
  • Comment error codes

Revision Content

This section is a reference to the program definitions used by the Plug-in API. All program definitions are found in npapi.h.


Error Codes

Code Value Description
NPERR_NO_ERROR 0 No errors occurred
NPERR_GENERIC_ERROR 1 Error with no specific error code occurred
NPERR_INVALID_INSTANCE_ERROR 2 Invalid instance passed to the plug-in
NPERR_INVALID_FUNCTABLE_ERROR 3 Function table invalid
NPERR_MODULE_LOAD_FAILED_ERROR 4 Loading of plug-in failed
NPERR_OUT_OF_MEMORY_ERROR 5 Memory allocation failed
NPERR_INVALID_PLUGIN_ERROR 6 Plug-in missing or invalid
NPERR_INVALID_PLUGIN_DIR_ERROR 7 Plug-in directory missing or invalid
NPERR_INCOMPATIBLE_VERSION_ERROR 8 Versions of plug-in and Communicator do not match
NPERR_INVALID_PARAM 9 Parameter missing or invalid
NPERR_INVALID_URL 10 URL missing or invalid
NPERR_FILE_NOT_FOUND 11 File missing or invalid
NPERR_NO_DATA 12 Stream contains no data
NPERR_STREAM_NOT_SEEKABLE 13 Seekable stream expected

Revision Source

<p>This section is a reference to the program definitions used by the Plug-in API. All program definitions are found in npapi.h.
</p><p><br>
</p>
<h3 name="Error_Codes">Error Codes</h3>
<table class="standard-table">
  <tbody><tr>
    <th>Code</th>
    <th>Value</th>
    <th>Description</th>
  </tr>
  <tr>
    <td><b>NPERR_NO_ERROR </b></td>
    <td>0</td>
    <td>No errors occurred</td>
  </tr>
  <tr>
    <td><b>NPERR_GENERIC_ERROR </b></td>
    <td>1</td>
    <td>Error with no specific error code occurred</td>
  </tr>
  <tr>
    <td><b>NPERR_INVALID_INSTANCE_ERROR </b></td>
    <td>2</td>
    <td>Invalid instance passed to the plug-in</td>
  </tr>
  <tr>
    <td><b>NPERR_INVALID_FUNCTABLE_ERROR </b></td>
    <td>3</td>
    <td>Function table invalid</td>
  </tr>
  <tr>
    <td><b>NPERR_MODULE_LOAD_FAILED_ERROR</b></td>
    <td>4</td>
    <td>Loading of plug-in failed</td>
  </tr>
  <tr>
    <td><b>NPERR_OUT_OF_MEMORY_ERROR</b></td>
    <td>5</td>
    <td>Memory allocation failed</td>
  </tr>
  <tr>
    <td><b>NPERR_INVALID_PLUGIN_ERROR </b></td>
    <td>6</td>
    <td>Plug-in missing or invalid</td>
  </tr>
  <tr>
    <td><b>NPERR_INVALID_PLUGIN_DIR_ERROR</b></td>
    <td>7</td>
    <td>Plug-in directory missing or invalid</td>
  </tr>
  <tr>
    <td><b>NPERR_INCOMPATIBLE_VERSION_ERROR</b></td>
    <td>8</td>
    <td>Versions of plug-in and Communicator do not match</td>
  </tr>
  <tr>
    <td><b>NPERR_INVALID_PARAM </b></td>
    <td>9</td>
    <td>Parameter missing or invalid</td>
  </tr>
  <tr>
    <td><b>NPERR_INVALID_URL</b></td>
    <td>10</td>
    <td>URL missing or invalid</td>
  </tr>
  <tr>
    <td><b>NPERR_FILE_NOT_FOUND</b></td>
    <td>11</td>
    <td>File missing or invalid</td>
  </tr>
  <tr>
    <td><b>NPERR_NO_DATA</b></td>
    <td>12</td>
    <td>Stream contains no data</td>
  </tr>
  <tr>
    <td><b>NPERR_STREAM_NOT_SEEKABLE </b></td>
    <td>13</td>
    <td>Seekable stream expected</td>
  </tr>
</tbody></table>
Revert to this revision