Exemple
public
static
class
ClasseA
throws
RuntimeException {
public
void
methodeA {
//...
throw new
RuntimeException();
}
}
Solution
Créez une clause catch spécifique à chaque exception RuntimeException déclarée dans la clause throws.