in resolver/src/main/java/org/apache/james/jspf/terms/IncludeMechanism.java [108:127]
public void onException(Throwable exception, SPFSession session)
throws PermErrorException, NoneException,
TempErrorException, NeutralException {
restoreSession(session);
if (exception instanceof NeutralException) {
throw new PermErrorException("included checkSPF returned NeutralException");
} else if (exception instanceof NoneException) {
throw new PermErrorException("included checkSPF returned NoneException");
} else if (exception instanceof PermErrorException){
throw (PermErrorException) exception;
} else if (exception instanceof TempErrorException){
throw (TempErrorException) exception;
} else if (exception instanceof RuntimeException){
throw (RuntimeException) exception;
} else {
throw new IllegalStateException(exception.getMessage());
}
}