diff options
author | Dwight <dmerriman@gmail.com> | 2009-02-06 16:56:14 -0500 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2009-02-06 16:56:14 -0500 |
commit | 7d593671fec6aa3a449b895c1220a2e4c6fc42e7 (patch) | |
tree | bcc277a7677809b5403021d760326a3a9a4a52e8 /stdafx.h | |
parent | 0759ee54b4fc10cb4125748d7f35e0b773d9bc8a (diff) | |
download | mongo-7d593671fec6aa3a449b895c1220a2e4c6fc42e7.tar.gz |
rename classes and add a new client connect method
Diffstat (limited to 'stdafx.h')
-rw-r--r-- | stdafx.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -129,13 +129,13 @@ namespace mongo { virtual const char* what() const throw() { return msg.c_str(); } }; - /* we use the same mechanism for bad things the user does -- which are really just errors */ - class UserAssertionException : public AssertionException { + /* UserExceptions are valid errors that a user can cause, like out of disk space or duplicate key */ + class UserException : public AssertionException { public: - UserAssertionException(const char *_msg) { + UserException(const char *_msg) { msg = _msg; } - UserAssertionException(string _msg) { + UserException(string _msg) { msg = _msg; } virtual bool severe() { |