~ubuntu-branches/ubuntu/quantal/libbonobo/quantal-201207170711

« back to all changes in this revision

Viewing changes to doc/api/html/libbonobo-bonobo-exception.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-03-06 18:53:16 UTC
  • mfrom: (1.1.25 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090306185316-uf09r30g7cvf67xi
Tags: 2.24.1-1
* New upstream bugfix release.
* debian/control.in:
  + Build depend on GLib >= 2.14.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>bonobo-exception</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.2">
7
7
<link rel="home" href="index.html" title="Libbonobo Reference Manual">
8
8
<link rel="up" href="general.html" title="General">
9
9
<link rel="prev" href="libbonobo-bonobo-context.html" title="bonobo-context">
56
56
#define             <a class="link" href="libbonobo-bonobo-exception.html#BONOBO-RET-VAL-EX--CAPS" title="BONOBO_RET_VAL_EX()">BONOBO_RET_VAL_EX</a>                   (ev,v)
57
57
char *              (<a class="link" href="libbonobo-bonobo-exception.html#BonoboExceptionFn" title="BonoboExceptionFn ()">*BonoboExceptionFn</a>)                (CORBA_Environment *ev,
58
58
                                                         <a
59
 
href="../glib/glib-Basic-Types.html#gpointer"
 
59
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
60
60
>gpointer</a> user_data);
61
61
char *              <a class="link" href="libbonobo-bonobo-exception.html#bonobo-exception-get-text" title="bonobo_exception_get_text ()">bonobo_exception_get_text</a>           (CORBA_Environment *ev);
62
62
char *              <a class="link" href="libbonobo-bonobo-exception.html#bonobo-exception-repoid-to-text" title="bonobo_exception_repoid_to_text ()">bonobo_exception_repoid_to_text</a>     (const char *repo_id);
65
65
void                <a class="link" href="libbonobo-bonobo-exception.html#bonobo-exception-add-handler-fn" title="bonobo_exception_add_handler_fn ()">bonobo_exception_add_handler_fn</a>     (const char *repo_id,
66
66
                                                         <a class="link" href="libbonobo-bonobo-exception.html#BonoboExceptionFn" title="BonoboExceptionFn ()">BonoboExceptionFn</a> fn,
67
67
                                                         <a
68
 
href="../glib/glib-Basic-Types.html#gpointer"
 
68
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
69
69
>gpointer</a> user_data,
70
70
                                                         <a
71
 
href="../glib/glib-Datasets.html#GDestroyNotify"
 
71
href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"
72
72
>GDestroyNotify</a> destroy_fn);
73
73
void                <a class="link" href="libbonobo-bonobo-exception.html#bonobo-exception-general-error-set" title="bonobo_exception_general_error_set ()">bonobo_exception_general_error_set</a>  (CORBA_Environment *ev,
74
74
                                                         CORBA_TypeCode opt_deriv,
91
91
is used thus:
92
92
  </p>
93
93
<div class="example">
94
 
<a name="id2741027"></a><p class="title"><b>Example 4. Bonobo exception trapping and reporting</b></p>
 
94
<a name="id2981278"></a><p class="title"><b>Example 4. Bonobo exception trapping and reporting</b></p>
95
95
<div class="example-contents"><pre class="programlisting">
96
96
int
97
97
do_something (CORBA_Environment *ev)
298
298
<a name="BonoboExceptionFn"></a><h3>BonoboExceptionFn ()</h3>
299
299
<pre class="programlisting">char *              (*BonoboExceptionFn)                (CORBA_Environment *ev,
300
300
                                                         <a
301
 
href="../glib/glib-Basic-Types.html#gpointer"
 
301
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
302
302
>gpointer</a> user_data);</pre>
303
303
<p>
304
304
The prototype for user registerable exception decoders.
411
411
<pre class="programlisting">void                bonobo_exception_add_handler_fn     (const char *repo_id,
412
412
                                                         <a class="link" href="libbonobo-bonobo-exception.html#BonoboExceptionFn" title="BonoboExceptionFn ()">BonoboExceptionFn</a> fn,
413
413
                                                         <a
414
 
href="../glib/glib-Basic-Types.html#gpointer"
 
414
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
415
415
>gpointer</a> user_data,
416
416
                                                         <a
417
 
href="../glib/glib-Datasets.html#GDestroyNotify"
 
417
href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"
418
418
>GDestroyNotify</a> destroy_fn);</pre>
419
419
<p>
420
420
This routine adds a method mapping for an exception