Gimp.PlugIn.set_pdb_error_handler

@accepts(Gimp.PlugIn, Gimp.PDBErrorHandler)
@returns(none)
def set_pdb_error_handler(self, handler):
    # Python wrapper for gimp_plug_in_set_pdb_error_handler()
  

Sets an error handler for procedure calls.

This procedure changes the way that errors in procedure calls are handled. By default GIMP will raise an error dialog if a procedure call made by a plug-in fails. Using this procedure the plug-in can change this behavior. If the error handler is set to Gimp.PDBErrorHandler.plugin, then the plug-in is responsible for calling Gimp.PDB.get_last_error and handling the error whenever one if its procedure calls fails. It can do this by displaying the error message or by forwarding it in its own return values.

Since 3.0

self

A plug-in

handler

Who is responsible for handling procedure call errors.