1
.\" $Xorg: XtAppEM.man,v 1.3 2000/08/17 19:41:58 cpqbld Exp $
3
.\" Copyright 1993 X Consortium
5
.\" Permission is hereby granted, free of charge, to any person obtaining
6
.\" a copy of this software and associated documentation files (the
7
.\" "Software"), to deal in the Software without restriction, including
8
.\" without limitation the rights to use, copy, modify, merge, publish,
9
.\" distribute, sublicense, and/or sell copies of the Software, and to
10
.\" permit persons to whom the Software is furnished to do so, subject to
11
.\" the following conditions:
13
.\" The above copyright notice and this permission notice shall be
14
.\" included in all copies or substantial portions of the Software.
16
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
.\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
.\" OTHER DEALINGS IN THE SOFTWARE.
24
.\" Except as contained in this notice, the name of the X Consortium shall
25
.\" not be used in advertising or otherwise to promote the sale, use or
26
.\" other dealings in this Software without prior written authorization
27
.\" from the X Consortium.
29
.\" $XFree86: xc/doc/man/Xt/XtAppEM.man,v 1.3 2001/02/09 03:47:49 tsi Exp $
32
.ds xT X Toolkit Intrinsics \- C Language Interface
34
.ds xW X Toolkit Athena Widgets \- C Language Interface
35
.ds xL Xlib \- C Language X Interface
36
.ds xC Inter-Client Communication Conventions Manual
39
.hw XtApp-Error-Msg XtApp-Set-Error-Msg-Handler XtApp-Set-Warning-Msg-Handler XtApp-Warning-Msg wid-get
46
.\".if \\n(VS>=40 .vs \\n(VSu
47
.\".if \\n(VS<=39 .vs \\n(VSp
70
.de IN \" send an index entry to the stderr
77
.\" choose appropriate monospace font
78
.\" the imagen conditional, 480,
79
.\" may be changed to L if LB is too
80
.\" heavy for your eyes...
82
.ie "\\*(.T"480" .ft L
83
.el .ie "\\*(.T"300" .ft L
84
.el .ie "\\*(.T"202" .ft PO
85
.el .ie "\\*(.T"aps" .ft CW
88
.ie \\n(VS>40 .vs \\n(VSu
96
.ie t \\$1\fB\^\\$2\^\fR\\$3
97
.el \\$1\fI\^\\$2\^\fP\\$3
100
.ie t \fB\^\\$1\^\fR\\$2
101
.el \fI\^\\$1\^\fP\\$2
106
.if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2
107
.if \\n(.$ .if !'\\$1'C' .ds NO \\$1
121
. \" Note End -- doug kraft 3/85
130
.TH XtAppErrorMsg 3Xt __xorgversion__ "XT FUNCTIONS"
132
XtAppErrorMsg, XtAppSetErrorMsgHandler, XtAppSetWarningMsgHandler, XtAppWarningMsg \- high-level error handlers
134
void XtAppErrorMsg(\fIapp_context\fP, \fIname\fP, \fItype\fP, \fIclass\fP,
135
\fIdefault\fP, \ \fIparams\fP, \fInum_params\fP)
137
XtAppContext \fIapp_context\fP;
145
String \fIdefault\fP;
147
String *\fIparams\fP;
149
Cardinal *\fInum_params\fP;
151
void XtAppSetErrorMsgHandler(\fIapp_context\fP, \fImsg_handler\fP)
153
XtAppContext \fIapp_context\fP;
155
XtErrorMsgHandler \fImsg_handler\fP;
157
void XtAppSetWarningMsgHandler(\fIapp_context\fP, \fImsg_handler\fP)
159
XtAppContext \fIapp_context\fP;
161
XtErrorMsgHandler \fImsg_handler\fP;
163
void XtAppWarningMsg(\fIapp_context\fP, \fIname\fP, \fItype\fP, \fIclass\fP, \fIdefault\fP, \fIparams\fP, \fInum_params\fP)
165
XtAppContext \fIapp_context\fP;
173
String \fIdefault\fP;
175
String *\fIparams\fP;
177
Cardinal *\fInum_params\fP;
179
.IP \fIapp_context\fP 1i
180
Specifies the application context.
183
Specifies the resource class\*(Cl.
185
Specifies the default message to use\*(Dm.
187
Specifies the general kind of error.
189
Specifies the detailed name of the error.
190
.ds Mh fatal error procedure, which should not return
191
or the nonfatal error procedure, which usually returns
192
.IP \fImsg_handler\fP 1i
193
Specifies the new \*(Mh.
194
.IP \fInum_params\fP 1i
195
Specifies the number of values in the parameter list.
197
Specifies a pointer to a list of values to be stored in the message.
201
function calls the high-level error handler and passes the specified
205
.ZN XtAppSetErrorMsgHandler
206
function registers the specified procedure,
207
which is called when a fatal error occurs.
210
.ZN XtAppSetWarningMsgHandler
211
function registers the specified procedure,
212
which is called when a nonfatal error condition occurs.
216
function calls the high-level error handler and passes the specified
219
XtAppGetErrorDatabase(3Xt),