void (boolean value) { try { if (value) { throw new ClassNotFoundException(); } else { throw new NumberFormatException(); } } catch(ClassNotFoundException | NumberFormatException cnfe) { log(cnfe); } }