projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
First pass through turning instance into ++
[m6w6/libmemcached]
/
libtest
/
fatal.hpp
diff --git
a/libtest/fatal.hpp
b/libtest/fatal.hpp
index bc288afeb767cf72498ee86348364dc830c5039f..f0ee08131614f3ee3dc8d8b1ff9bce0eeae1b024 100644
(file)
--- a/
libtest/fatal.hpp
+++ b/
libtest/fatal.hpp
@@
-56,6
+56,11
@@
public:
return _error_message;
}
return _error_message;
}
+ const char* mesg() const throw()
+ {
+ return _error_message;
+ }
+
// The following are just for unittesting the exception class
static bool is_disabled();
static void disable();
// The following are just for unittesting the exception class
static bool is_disabled();
static void disable();
@@
-63,8
+68,27
@@
public:
static uint32_t disabled_counter();
static void increment_disabled_counter();
static uint32_t disabled_counter();
static void increment_disabled_counter();
+ int line()
+ {
+ return _line;
+ }
+
+ const char* file()
+ {
+ return _file;
+ }
+
+ const char* func()
+ {
+ return _func;
+ }
+
private:
char _error_message[BUFSIZ];
private:
char _error_message[BUFSIZ];
+ char _mesg[BUFSIZ];
+ int _line;
+ const char* _file;
+ const char* _func;
};
class disconnected : std::runtime_error
};
class disconnected : std::runtime_error
@@
-84,10
+108,28
@@
public:
static uint32_t disabled_counter();
static void increment_disabled_counter();
static uint32_t disabled_counter();
static void increment_disabled_counter();
+ int line()
+ {
+ return _line;
+ }
+
+ const char* file()
+ {
+ return _file;
+ }
+
+ const char* func()
+ {
+ return _func;
+ }
+
private:
char _error_message[BUFSIZ];
in_port_t _port;
char _instance[1024];
private:
char _error_message[BUFSIZ];
in_port_t _port;
char _instance[1024];
+ int _line;
+ const char* _file;
+ const char* _func;
};
};