summaryrefslogtreecommitdiffstats
path: root/databases/usogres/files/patch-exception.h
blob: 004fd24a412049bba04eff444a95cc447a98b6c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- src/exception.h.orig	Mon Apr 15 22:00:03 2002
+++ src/exception.h	Wed Aug 20 19:01:50 2003
@@ -37,56 +37,56 @@
 	char* msg_buf;
 public:
 	UsogresException(const char* fn, int ln);
-	virtual ~UsogresException();
+	virtual ~UsogresException() throw();
 	virtual const char* where();
 };
 
 class ImcompletedValueException : public UsogresException {
 public:
 	ImcompletedValueException(const char* fn, int ln) : UsogresException(fn, ln)  {}
-	virtual const char* what() const { return "ImcompletedValueException"; }
+	virtual const char* what() const throw() { return "ImcompletedValueException"; }
 };
 
 class MemoryException : public UsogresException {
 public:
   MemoryException(const char* fn, int ln) : UsogresException(fn, ln) {}
-  virtual const char* what() const { return "MemoryException"; }
+  virtual const char* what() const throw() { return "MemoryException"; }
 };
 
 class FileException : public UsogresException {
 public:
   FileException(const char* fn, int ln) : UsogresException(fn, ln) {}
-  virtual const char* what() const { return "FileException"; }
+  virtual const char* what() const throw() { return "FileException"; }
 };
 
 class EnvException : public UsogresException {
 public:
   EnvException(const char* fn, int ln) : UsogresException(fn, ln) {}
-  virtual const char* what() const { return "EnvException"; }
+  virtual const char* what() const throw() { return "EnvException"; }
 };
 
 class FileFormatException : public UsogresException {
 public:
   FileFormatException(const char* fn, int ln) : UsogresException(fn, ln) {}
-  virtual const char* what() const { return "FileFormatException"; }
+  virtual const char* what() const throw() { return "FileFormatException"; }
 };
 
 class TokenFormatException : public UsogresException {
 public:
   TokenFormatException(const char* fn, int ln) : UsogresException(fn, ln) {}
-  virtual const char* what() const { return "TokenFormatException"; }
+  virtual const char* what() const throw() { return "TokenFormatException"; }
 };
 
 class LogicalException : public UsogresException {
 public:
   LogicalException(const char* fn, int ln) : UsogresException(fn, ln) {}
-  virtual const char* what() const { return "LogicalException"; }
+  virtual const char* what() const throw() { return "LogicalException"; }
 };
 
 class InvalidProtocolException : public UsogresException {
 public:
   InvalidProtocolException(const char* fn, int ln) : UsogresException(fn, ln) {}
-  virtual const char* what() const { return "InvalidProtocolException"; }
+  virtual const char* what() const throw() { return "InvalidProtocolException"; }
 };
 
 #endif
OpenPOWER on IntegriCloud