mozilla

Revision 190764 of NPN_SetException

  • Revision slug: NPN_SetException
  • Revision title: NPN_SetException
  • Revision id: 190764
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment newly imported
Tags: 

Revision Content

Summary

A plugin can call this function to indicate that a call to one of the plugin's NPObjects generated an error.

Syntax

#include <npruntime.h>
 
void NPN_SetException(NPObject *npobj, const NPUTF8 *message);

Parameters

The function has the following parameters:

<tt>npobj</tt>
The object on which the exception occurred.
<tt>message</tt>
A UTF-8 string describing the error that occurred.

Returns

Nothing.

Revision Source

<p>
</p><p>
</p>
<h3 name="Summary">Summary</h3>
<p>A plugin can call this function to indicate that a call to one of the plugin's <code><a href="en/NPObject">NPObject</a></code>s generated an error.
</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
void NPN_SetException(NPObject *npobj, const NPUTF8 *message);
</pre>
<h3 name="Parameters">Parameters</h3>
<p>The function has the following parameters:
</p>
<dl><dt><tt>npobj</tt>
</dt><dd>The object on which the exception occurred.
</dd><dt><tt>message</tt>
</dt><dd>A UTF-8 string describing the error that occurred.
</dd></dl>
<h3 name="Returns">Returns</h3>
<p>Nothing.
</p>
Revert to this revision