Exemplo n.º 1
0
 static MongoException parse(final BSONObject o) {
   final String s = ServerError.getMsg(o, null);
   if (s == null) {
     return null;
   }
   return new MongoException(ServerError.getCode(o), s);
 }
Exemplo n.º 2
0
 public MongoException(final BSONObject o) {
   this(ServerError.getCode(o), ServerError.getMsg(o, "UNKNOWN"));
 }