Moi j'ai vu quelque chose comme ça en PHP, il fallait y penser :roll: :


try {
if (! uneFunction()){
throw new Exception();
}
} catch(Exception $e){
return false;
}