I've tried to handle MongoDB exceptions with java driver, but in none of my try catch exception are thrown ?
try
{
MongoClient client = new MongoClient("localhost", 27017);
DB database = client.getDB("example");
}catch(Exception e){
e.printStackTrace();
}
Can you help me please ?