Disable all code related to libXp
[oweals/cde.git] / cde / programs / dtinfo / DtMmdb / StyleSheet / StyleSheetExceptions.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23 /* $TOG: StyleSheetExceptions.h /main/4 1998/04/17 11:49:51 mgreess $ */
24 #ifndef _StyleSheetExceptions_h
25 #define _StyleSheetExceptions_h
26
27 #include "Exceptions.hh"
28 #include "SymTab.h"
29
30 #define CASTEXCEPT
31 #define CASTBCEXCEPT
32 #define CASTBEEXCEPT
33 #define CASTDPEXCEPT
34 #define CASTDPUCEXCEPT
35 #define CASTDPUTEXCEPT
36 #define CASTDPUDEXCEPT
37 #define CASTDPUEEXCEPT
38 #define CASTSSEXCEPT
39 #define CASTSSSEEXCEPT
40 #define CASTUAEXCEPT
41 #define CASTUTEXCEPT
42 #define CASTUVEXCEPT
43
44 class StyleSheetException : public Exception
45 {
46 public:
47   DECLARE_EXCEPTION(StyleSheetException, Exception)
48   virtual ~StyleSheetException();
49 };
50
51 class StyleSheetSyntaxError : public StyleSheetException
52 {
53 public:
54   DECLARE_EXCEPTION(StyleSheetSyntaxError, StyleSheetException)
55   
56 };
57
58 class badEvaluationException : public StyleSheetException
59 {
60 public:
61   DECLARE_EXCEPTION(badEvaluationException, StyleSheetException)
62
63   virtual ~badEvaluationException();
64 };
65
66 class badCastException : public StyleSheetException
67 {
68 public:
69   DECLARE_EXCEPTION(badCastException, StyleSheetException)
70 };
71
72 class undefinedVariableException : public badEvaluationException
73 {
74 public:
75   DECLARE_EXCEPTION(undefinedVariableException, badEvaluationException)
76
77   undefinedVariableException(const Symbol &v)
78     : badEvaluationException(),
79     f_variable_name(v)
80     {}
81
82 private:
83   Symbol        f_variable_name;
84
85 };
86
87 class undefinedAttributeException : public badEvaluationException
88 {
89 public:
90   DECLARE_EXCEPTION(undefinedAttributeException, badEvaluationException)
91
92   undefinedAttributeException(const Symbol &a)
93     : badEvaluationException(),
94     f_attribute_name(a)
95     {}
96
97 private:
98   Symbol        f_attribute_name;
99 };
100
101 class docParserException : public Exception
102 {
103 public:
104   DECLARE_EXCEPTION(docParserException, Exception)
105 };
106
107 class unknownTagException : public docParserException
108 {
109 public:
110   DECLARE_EXCEPTION(unknownTagException, docParserException)
111   
112 };
113
114 class docParserUnexpectedCharacter : public docParserException
115 {
116 public:
117   DECLARE_EXCEPTION(docParserUnexpectedCharacter, docParserException)
118   
119 };
120 class docParserUnexpectedTag : public docParserException
121 {
122 public:
123   DECLARE_EXCEPTION(docParserUnexpectedTag, docParserException)
124   
125 };
126 class docParserUnexpectedData : public docParserException
127 {
128 public:
129   DECLARE_EXCEPTION(docParserUnexpectedData, docParserException)
130   
131 };
132 class docParserUnexpectedEof : public docParserException
133 {
134 public:
135   DECLARE_EXCEPTION(docParserUnexpectedEof, docParserException)
136   
137 };
138
139
140
141 #endif /* _StyleSheetExceptions_h */
142 /* DO NOT ADD ANY LINES AFTER THIS #endif */