exercice 4: handle exception with verbosity mode