(file) Return to parserExceptions.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Compiler

 1 mike  1.7 //%/////////////////////////////////////////////////////////////////////////////
 2           //
 3           // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM
 4           //
 5           // Permission is hereby granted, free of charge, to any person obtaining a copy
 6           // of this software and associated documentation files (the "Software"), to 
 7           // deal in the Software without restriction, including without limitation the 
 8           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 
 9           // sell copies of the Software, and to permit persons to whom the Software is
10           // furnished to do so, subject to the following conditions:
11           // 
12           // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN 
13           // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
14           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 
16           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
17           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 
18           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
19           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20           //
21           //==============================================================================
22 mike  1.7 //
23           // Author: Bob Blair (bblair@bmc.com)
24           //
25           // Modified By:
26           //
27           //%/////////////////////////////////////////////////////////////////////////////
28           
29           
30           // Exceptions that can occur in processing the cimmof compiler command line
31           //
32           
33           #ifndef _PARSEREXCEPTION_H_
34           #define _PARSEREXCEPTION_H_
35           
36           // NOTE:  This exception does not use the Exception class from
37           // Pegasus/Common because it has to do with the base class parser,
38           // which should be reusable outside Pegasus.
39           
40           #include <Pegasus/Common/String.h>
41           
42           #ifdef PEGASUS_HAVE_NAMESPACES
43 mike  1.7 namespace ParserExceptions {
44           #endif
45           
46           class PEGASUS_COMPILER_LINKAGE ParserException {
47            private:
48             const String _msg;
49            public:
50             ParserException(const char *msg) : _msg(msg) {} ;
51             ParserException(const String &msg) :  _msg(msg) {};
52             const String &getMessage() const { return _msg; };
53           };
54           
55           class PEGASUS_COMPILER_LINKAGE ParserLexException : public ParserException  {
56            public:
57             ParserLexException(const char *msg) : ParserException(msg) {};
58             ParserLexException(const String &msg) : ParserException(msg) {};
59             ~ParserLexException() {};
60           };
61           
62           #ifdef PEGASUS_HAVE_NAMESPACES
63           }
64 mike  1.7 #endif
65           
66           #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2