NPN_SetException

Ā« Gecko Plugin API Reference Ā« Scripting plugins

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.