Example


public class SpecificException extends Exception {

public SpecificException() {
super();
}
}


public class Exemplo {
public void compute(Object subject) throws SpecificException {
if (subject == null){
throw new SpecificException();
}
//...
}

public void declaresException(Object o) throws Exception {
compute(o);
}
}

Solução
Declare todas as exceções verificadas na cláusula throws.


public class SpecificException extends Exception {
public SpecificException() {
super();
}
}

public class Solution {
public void compute(Object subject) throws SpecificException {
if (subject == null){
throw new SpecificException();
}
//...
}

public void declaresException(Object o) throws SpecificException {
compute(o);
}
}