This file is indexed.

/usr/share/gtk-doc/html/libbonobo/libbonobo-bonobo-exception.html is in libbonobo2-dev 2.32.1-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Libbonobo Reference Manual: bonobo-exception</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Libbonobo Reference Manual">
<link rel="up" href="general.html" title="General">
<link rel="prev" href="libbonobo-bonobo-context.html" title="bonobo-context">
<link rel="next" href="libbonobo-bonobo-application.html" title="bonobo-application">
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 
                  <a href="#libbonobo-bonobo-exception.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 
                  <a href="#libbonobo-bonobo-exception.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="general.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libbonobo-bonobo-context.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libbonobo-bonobo-application.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libbonobo-bonobo-exception"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libbonobo-bonobo-exception.top_of_page"></a>bonobo-exception</span></h2>
<p>bonobo-exception — maps CORBA exceptions to user readable text, + helper macros</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libbonobo-bonobo-exception.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#bonobo-exception-set" title="bonobo_exception_set()">bonobo_exception_set</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#bonobo-return-if-fail" title="bonobo_return_if_fail()">bonobo_return_if_fail</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#bonobo-return-val-if-fail" title="bonobo_return_val_if_fail()">bonobo_return_val_if_fail</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#BONOBO-EX:CAPS" title="BONOBO_EX()">BONOBO_EX</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#BONOBO-USER-EX:CAPS" title="BONOBO_USER_EX()">BONOBO_USER_EX</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#BONOBO-EX-REPOID:CAPS" title="BONOBO_EX_REPOID()">BONOBO_EX_REPOID</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#BONOBO-RET-EX:CAPS" title="BONOBO_RET_EX()">BONOBO_RET_EX</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#BONOBO-RET-VAL-EX:CAPS" title="BONOBO_RET_VAL_EX()">BONOBO_RET_VAL_EX</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="libbonobo-bonobo-exception.html#BonoboExceptionFn" title="BonoboExceptionFn ()">*BonoboExceptionFn</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#bonobo-exception-get-text" title="bonobo_exception_get_text ()">bonobo_exception_get_text</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#bonobo-exception-add-handler-str" title="bonobo_exception_add_handler_str ()">bonobo_exception_add_handler_str</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<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> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="libbonobo-bonobo-exception.html#bonobo-exception-general-error-get" title="bonobo_exception_general_error_get ()">bonobo_exception_general_error_get</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libbonobo-bonobo-exception.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">
</pre>
</div>
<div class="refsect1">
<a name="libbonobo-bonobo-exception.description"></a><h2>Description</h2>
<p>
This module contains some useful helper functions
that can be used to set various exceptions inside your
CORBA methods. It also contains code to map between
complex CORBA_Environment exceptions and helpful
strings suitable for display to the user.
</p>
<p>
Typically to test for exceptions the BONOBO_EX macro
is used thus:
  </p>
<div class="example">
<a name="id-1.2.8.5.3.1"></a><p class="title"><b>Example 4. Bonobo exception trapping and reporting</b></p>
<div class="example-contents"><pre class="programlisting">
int
do_something (CORBA_Environment *ev)
{
	...
	retval = Foo_Baa_method (object, ev);
	if (BONOBO_EX (ev)) {
		if (BONOBO_USER_EX (ev, ex_CosNaming_NamingContext_NotFound)) {
		        g_warning ("Not found");
		} else {
		        char *str;
			g_warning ("Exception '%s' occured",
				(str = bonobo_exception_get_text (ev)));
			g_free (str);
		}
		return -1;
	}
	...
}
     </pre></div>
</div>
<p><br class="example-break">
</p>
</div>
<div class="refsect1">
<a name="libbonobo-bonobo-exception.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="bonobo-exception-set"></a><h3>bonobo_exception_set()</h3>
<pre class="programlisting">#define             bonobo_exception_set(opt_ev,repo_id)</pre>
<p>
This macro sets the stateless user exception with <em class="parameter"><code>repo_id</code></em> on
<em class="parameter"><code>opt_ev</code></em> or warns if <em class="parameter"><code>opt_ev</code></em> == NULL
</p>
<div class="refsect3">
<a name="id-1.2.8.6.2.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>opt_ev</p></td>
<td class="parameter_description"><p>an optional corba exception environment.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>repo_id</p></td>
<td class="parameter_description"><p>repoid of the exception to set.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-return-if-fail"></a><h3>bonobo_return_if_fail()</h3>
<pre class="programlisting">#define             bonobo_return_if_fail(expr,opt_ev)</pre>
<p>
this macro is used for bonobo preconditons on argument types,
usualy inside skels if <em class="parameter"><code>expr</code></em> is FALSE a warning is printed and
<em class="parameter"><code>opt_ev</code></em> is set to ex_Bonobo_BadArg.
</p>
<div class="refsect3">
<a name="id-1.2.8.6.3.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>expr</p></td>
<td class="parameter_description"><p>an expression that should be true</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>opt_ev</p></td>
<td class="parameter_description"><p>an optional corba exception environment.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-return-val-if-fail"></a><h3>bonobo_return_val_if_fail()</h3>
<pre class="programlisting">#define             bonobo_return_val_if_fail(expr,val,opt_ev)</pre>
<p>
this macro is used for bonobo preconditons on argument types,
usualy inside skels if <em class="parameter"><code>expr</code></em> is FALSE a warning is printed and
<em class="parameter"><code>opt_ev</code></em> is set to ex_Bonobo_BadArg.
</p>
<div class="refsect3">
<a name="id-1.2.8.6.4.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>expr</p></td>
<td class="parameter_description"><p>an expression that should be true</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>val</p></td>
<td class="parameter_description"><p>a value to return on failure.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>opt_ev</p></td>
<td class="parameter_description"><p>an optional corba exception environment.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="BONOBO-EX:CAPS"></a><h3>BONOBO_EX()</h3>
<pre class="programlisting">#define BONOBO_EX(ev)         ((ev) != NULL &amp;&amp; (ev)-&gt;_major != CORBA_NO_EXCEPTION)
</pre>
<p>
This macro returns TRUE if <em class="parameter"><code>ev</code></em> flags an exception.
</p>
<div class="refsect3">
<a name="id-1.2.8.6.5.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ev</p></td>
<td class="parameter_description"><p>the exception environment</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="BONOBO-USER-EX:CAPS"></a><h3>BONOBO_USER_EX()</h3>
<pre class="programlisting">#define             BONOBO_USER_EX(ev,id)</pre>
<p>
This macro returns TRUE if <em class="parameter"><code>ev</code></em> contains a user exception
of type <em class="parameter"><code>id</code></em>.
</p>
<div class="refsect3">
<a name="id-1.2.8.6.6.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ev</p></td>
<td class="parameter_description"><p>the exception environment</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>id</p></td>
<td class="parameter_description"><p>the repo_id of the exception</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="BONOBO-EX-REPOID:CAPS"></a><h3>BONOBO_EX_REPOID()</h3>
<pre class="programlisting">#define BONOBO_EX_REPOID(ev)  (ev)-&gt;_id
</pre>
<p>
Returns the repoid string of exception <em class="parameter"><code>ev</code></em>.
</p>
<div class="refsect3">
<a name="id-1.2.8.6.7.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ev</p></td>
<td class="parameter_description"><p>a CORBA exception</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="BONOBO-RET-EX:CAPS"></a><h3>BONOBO_RET_EX()</h3>
<pre class="programlisting">#define             BONOBO_RET_EX(ev)</pre>
<p>
returns if there is an exception flagged in <em class="parameter"><code>ev</code></em>.
</p>
<div class="refsect3">
<a name="id-1.2.8.6.8.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ev</p></td>
<td class="parameter_description"><p>the exception environment</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="BONOBO-RET-VAL-EX:CAPS"></a><h3>BONOBO_RET_VAL_EX()</h3>
<pre class="programlisting">#define             BONOBO_RET_VAL_EX(ev,v)</pre>
<p>
returns <em class="parameter"><code>v</code></em> if there is an exception flagged in <em class="parameter"><code>ev</code></em>
</p>
<div class="refsect3">
<a name="id-1.2.8.6.9.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ev</p></td>
<td class="parameter_description"><p>the exception environment</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>v</p></td>
<td class="parameter_description"><p>the value to return</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="BonoboExceptionFn"></a><h3>BonoboExceptionFn ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
<span class="c_punctuation">(</span>*BonoboExceptionFn<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>,
                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
The prototype for user registerable exception decoders.
</p>
<div class="refsect3">
<a name="id-1.2.8.6.10.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ev</p></td>
<td class="parameter_description"><p>the exception environment</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>user data to be passed to the function</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.8.6.10.6"></a><h4>Returns</h4>
<p>a g_malloc'd copy of a translated user readable error string.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-exception-get-text"></a><h3>bonobo_exception_get_text ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
bonobo_exception_get_text (<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>);</pre>
<p>Returns a user readable description of the exception.  First
checks <em class="parameter"><code>ev</code></em>
 against builtin Bonobo exceptions, then falls back to
exception names added through bonobo_exception_add_handler_str
or bonobo_exception_add_handler_fn.</p>
<div class="refsect3">
<a name="id-1.2.8.6.11.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ev</p></td>
<td class="parameter_description"><p>the corba environment.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.8.6.11.6"></a><h4>Returns</h4>
<p> A g_malloc'd description, which the caller must free.
NULL is never returned.</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-exception-repoid-to-text"></a><h3>bonobo_exception_repoid_to_text ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
bonobo_exception_repoid_to_text (<em class="parameter"><code>const <span class="type">char</span> *repo_id</code></em>);</pre>
<p>This maps builtin bonobo exceptions that the system
knows about to user readable strings.</p>
<div class="refsect3">
<a name="id-1.2.8.6.12.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>repo_id</p></td>
<td class="parameter_description"><p>exception repository id</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="id-1.2.8.6.12.6"></a><h4>Returns</h4>
<p> a user string or NULL for an unknown repo_id</p>
<p></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-exception-add-handler-str"></a><h3>bonobo_exception_add_handler_str ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
bonobo_exception_add_handler_str (<em class="parameter"><code>const <span class="type">char</span> *repo_id</code></em>,
                                  <em class="parameter"><code>const <span class="type">char</span> *str</code></em>);</pre>
<p>This routine adds a simple string mapping for an exception
with repository id <em class="parameter"><code>repo_id</code></em>
, such that when we call
bonobo_exception_get_text on an exception of id <em class="parameter"><code>repo_id</code></em>
 we
get <em class="parameter"><code>str</code></em>
 back.</p>
<div class="refsect3">
<a name="id-1.2.8.6.13.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>repo_id</p></td>
<td class="parameter_description"><p>exception repository id</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>str</p></td>
<td class="parameter_description"><p>the user readable, translated exception text.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-exception-add-handler-fn"></a><h3>bonobo_exception_add_handler_fn ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
bonobo_exception_add_handler_fn (<em class="parameter"><code>const <span class="type">char</span> *repo_id</code></em>,
                                 <em class="parameter"><code><a class="link" href="libbonobo-bonobo-exception.html#BonoboExceptionFn" title="BonoboExceptionFn ()"><span class="type">BonoboExceptionFn</span></a> fn</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy_fn</code></em>);</pre>
<p>This routine adds a method mapping for an exception
with repository id <em class="parameter"><code>repo_id</code></em>
, such that when we call
bonobo_exception_get_text on an exception of id <em class="parameter"><code>repo_id</code></em>

the <em class="parameter"><code>fn</code></em>
 is called and passed <em class="parameter"><code>user_data</code></em>
.
When the handler is removed the <em class="parameter"><code>destroy_fn</code></em>
 is called
on its <em class="parameter"><code>user_data</code></em>
.</p>
<div class="refsect3">
<a name="id-1.2.8.6.14.5"></a><h4>Parameters</h4>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>repo_id</p></td>
<td class="parameter_description"><p>exception repository id</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>fn</p></td>
<td class="parameter_description"><p>function to make exception human readable</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>the user data</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>destroy_fn</p></td>
<td class="parameter_description"><p>user data destroy function or NULL.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-exception-general-error-set"></a><h3>bonobo_exception_general_error_set ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
bonobo_exception_general_error_set (<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>,
                                    <em class="parameter"><code><span class="type">CORBA_TypeCode</span> opt_deriv</code></em>,
                                    <em class="parameter"><code>const <span class="type">char</span> *format</code></em>,
                                    <em class="parameter"><code>...</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-exception-general-error-get"></a><h3>bonobo_exception_general_error_get ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *
bonobo_exception_general_error_get (<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>);</pre>
<p>
</p>
<div class="refsect3">
<a name="id-1.2.8.6.16.5"></a><h4>Returns</h4>
<p></p>
</div>
</div>
</div>
<div class="refsect1">
<a name="libbonobo-bonobo-exception.other_details"></a><h2>Types and Values</h2>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.20</div>
</body>
</html>