diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 17:06:07 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 17:06:07 -0500 |
commit | fa8961c3e8804a2fd606160d7649e973e906d0b4 (patch) | |
tree | 7b05dab00035f95e55fb131f38a15a06e7281a16 /s/chunk.cpp | |
parent | a3a0bc64f9082d712d8a0789811257ad45a6cb0b (diff) | |
download | mongo-fa8961c3e8804a2fd606160d7649e973e906d0b4.tar.gz |
Exception classess need codes too SERVER-112
Diffstat (limited to 's/chunk.cpp')
-rw-r--r-- | s/chunk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/s/chunk.cpp b/s/chunk.cpp index 9b757a77368..47c13e8eac1 100644 --- a/s/chunk.cpp +++ b/s/chunk.cpp @@ -446,7 +446,7 @@ namespace mongo { } stringstream ss; ss << "couldn't find a chunk which should be impossible extracted: " << _key.extractKey( obj ); - throw UserException( ss.str() ); + throw UserException( 8070 , ss.str() ); } Chunk* ChunkManager::findChunkOnServer( const string& server ) const { @@ -544,7 +544,7 @@ namespace mongo { ScopedDbConnection conn( i->first ); BSONObj res; if ( ! setShardVersion( conn.conn() , _ns , 0 , true , res ) ) - throw UserException( (string)"OH KNOW, cleaning up after drop failed: " + res.toString() ); + throw UserException( 8071 , (string)"OH KNOW, cleaning up after drop failed: " + res.toString() ); conn.done(); } |