Exception classess need codes too SERVER-112

This commit is contained in:
Eliot Horowitz
2009-12-28 17:06:07 -05:00
parent a3a0bc64f9
commit fa8961c3e8
24 changed files with 68 additions and 53 deletions

View File

@@ -427,7 +427,7 @@ namespace mongo {
jsval v;
if ( JS_GetPendingException( _context , &v ) )
cout << "\t why: " << toString( v ) << endl;
throw UserException( "invalid utf8" );
throw UserException( 9006 , "invalid utf8" );
}
assert( s );