Exemple
public
static
class
ClassA
throws
RuntimeException {
public
void
methodA {
//...
throw new
RuntimeException();
}
}
Solution
Créez une clause catch dédiée pour chaque exception RuntimeException déclarée dans la clause throws.