Exemple

public static class ClasseA throws NullPointerException {
public void methodeA {

throw new NullPointerException();
}

Solution
Créez une clause catch spécifique à chaque exception déclarée dans la clause throws.

public static class ClasseA throws Error {
public void methodeA {

throw new Error();
}