summaryrefslogtreecommitdiff
path: root/src/mongo/s/stale_exception.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-10 15:52:33 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-16 16:28:02 -0400
commit347935f7a5d0452146b1a73ad7ef9e249eaf1fb5 (patch)
tree00b322f5adcf3eb9c2624747a6b5b2179e440052 /src/mongo/s/stale_exception.h
parentcdf7aacb213c99d3ce620761ff46b030bbd7732d (diff)
downloadmongo-347935f7a5d0452146b1a73ad7ef9e249eaf1fb5.tar.gz
SERVER-30580 Eliminate UserException and MsgAssertionException types
All users were converted to just use AssertionException.
Diffstat (limited to 'src/mongo/s/stale_exception.h')
-rw-r--r--src/mongo/s/stale_exception.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/s/stale_exception.h b/src/mongo/s/stale_exception.h
index 1661320db8e..36f30c7fecb 100644
--- a/src/mongo/s/stale_exception.h
+++ b/src/mongo/s/stale_exception.h
@@ -81,14 +81,11 @@ public:
* stale config exceptions in a map and this requires a default constructor.
*/
StaleConfigException()
- : AssertionException(0, "initializing empty stale config exception object") {}
+ : AssertionException(ErrorCodes::InternalError,
+ "initializing empty stale config exception object") {}
virtual ~StaleConfigException() throw() {}
- virtual void appendPrefix(std::stringstream& ss) const {
- ss << "stale sharding config exception: ";
- }
-
std::string getns() const {
return _ns;
}