summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-02-06 16:56:14 -0500
committerDwight <dmerriman@gmail.com>2009-02-06 16:56:14 -0500
commit7d593671fec6aa3a449b895c1220a2e4c6fc42e7 (patch)
treebcc277a7677809b5403021d760326a3a9a4a52e8 /stdafx.h
parent0759ee54b4fc10cb4125748d7f35e0b773d9bc8a (diff)
downloadmongo-7d593671fec6aa3a449b895c1220a2e4c6fc42e7.tar.gz
rename classes and add a new client connect method
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdafx.h b/stdafx.h
index 0e6a0654833..7e6c12d3662 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -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() {