rasdaman complete source
rasmgr_error.hh
Go to the documentation of this file.
1 /*
2 * This file is part of rasdaman community.
3 *
4 * Rasdaman community is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Rasdaman community is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18 rasdaman GmbH.
19 *
20 * For more information please see <http://www.rasdaman.org>
21 * or contact Peter Baumann via <baumann@rasdaman.com>.
22 /
34 #ifndef RASMGR_ERROR_HH
35 #define RASMGR_ERROR_HH
36 
37 #include "rasmgr.hh"
38 
42 class RCError
43 {
44 public:
45  RCError();
46  virtual const char* getString(char *destBuffer)=0;
47 
48 };
49 
53 class RCErrorUnexpToken : public RCError
54 {
55 public:
56  RCErrorUnexpToken(const char*);
57  const char* getString(char *destBuffer);
58 private:
59  const char *pcc;
60 };
61 
65 class RCErrorNoPermission : public RCError
66 {
67 public:
68  RCErrorNoPermission();
69  const char* getString(char *destBuffer);
70 private:
71 };
72 
76 class RCErrorInvalidName : public RCError
77 {
78 public:
79  RCErrorInvalidName(const char*);
80  const char* getString(char *destBuffer);
81 private:
82  const char *pcc;
83 };
84 
88 class RCErrorMissingParam : public RCError
89 {
90 public:
91  RCErrorMissingParam(const char*);
92  const char* getString(char *destBuffer);
93 private:
94  const char *pcc;
95 };
96 
100 class RCErrorIncorNumberValue : public RCError
101 {
102 public:
103  RCErrorIncorNumberValue(const char*);
104  const char* getString(char *destBuffer);
105 private:
106  const char *pcc;
107 };
108 
109 #endif