in resolver/src/main/java/org/apache/james/jspf/terms/RedirectModifier.java [81:106]
public void onException(Throwable exception, SPFSession session)
throws PermErrorException, NoneException,
TempErrorException, NeutralException {
session.setIgnoreExplanation(true);
// remove every checker until the initialized one
if (exception instanceof NeutralException) {
throw new PermErrorException(
"included checkSPF returned NeutralException");
} else if (exception instanceof NoneException) {
// no spf record assigned to the redirect domain
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());
}
}