2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $TOG: SmError.h /main/6 1998/10/26 17:20:54 mgreess $ */
25 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
26 * (c) Copyright 1993, 1994 International Business Machines Corp. *
27 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
28 * (c) Copyright 1993, 1994 Novell, Inc. *
30 /************************************<+>*************************************
31 ****************************************************************************
39 ** Variables and definitions needed for
40 ** Error Handling for the session manager
43 ** (c) Copyright Hewlett-Packard Company, 1990.
47 ****************************************************************************
48 ************************************<+>*************************************/
63 * Error messages trapped by X window calls - These are never displayed
65 #define BAD_ACCESS "Attempt to access unavailable resource"
66 #define BAD_ATOM "Atom for argument is not a defined atom"
67 #define BAD_DRAWABLE "Drawable argument is invalid"
68 #define BAD_MATCH "Drawable is a invalid match for operation"
69 #define BAD_VALUE "Value in X call is invalid"
70 #define BAD_WINDOW "Window does not exist"
71 #define DEFAULT_ERROR "Non-fatal error from X server"
79 * All NLS error messages
81 typedef struct _NlsStrings
83 char *cantLockErrorString;
84 char *trustedSystemErrorString;
85 char *cantMallocErrorString;
86 char *cantOpenFileString;
87 char *cantForkClientString;
88 char *cantExecClientString;
89 char *cantCreateDirsString;
95 extern NlsStrings smNLS;
102 extern void InitErrorHandler( void ) ;
103 extern void PrintError( DtSeverity , char *) ;
104 extern void PrintErrnoError( DtSeverity , char *) ;
105 #ifndef NO_MESSAGE_CATALOG
106 char * GetMessage( int, int, char * );
110 #endif /*_smerror_h*/
111 /* DON'T ADD ANYTHING AFTER THIS #endif */