Fix how DBConnector and Config classes calls Exception class