casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DuplicateKey.h
Go to the documentation of this file.
1 /*
2  * ALMA - Atacama Large Millimeter Array
3  * (c) European Southern Observatory, 2002
4  * (c) Associated Universities Inc., 2002
5  * Copyright by ESO (in the framework of the ALMA collaboration),
6  * Copyright by AUI (in the framework of the ALMA collaboration),
7  * All rights reserved.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY, without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22  * MA 02111-1307 USA
23  *
24  * File DuplicateKey.h
25  */
26 
27 #ifndef DuplicateKey_CLASS
28 #define DuplicateKey_CLASS
29 
30 #include <string>
31 
32 namespace asdm {
33 
38 class DuplicateKey {
39 
40 public:
44  DuplicateKey();
45 
53  DuplicateKey(const std::string& m, const std::string& t);
54 
55 
59  ~DuplicateKey();
60 
64  std::string getMessage() const;
65 
66  protected:
67  std::string message;
68 
69  private:
70  static const std::string ITSNAME;
71 
72 };
73 
74 
75 
76 } // End namespace asdm
77 
78 #endif /* DuplicateKey_CLASS */
std::string message
Definition: DuplicateKey.h:67
~DuplicateKey()
The DTOR.
static const std::string ITSNAME
Definition: DuplicateKey.h:70
Generate an exception when a new row cannot be inserted because it contains a duplicate key...
Definition: DuplicateKey.h:38
DuplicateKey()
An empty CTOR.
std::string getMessage() const