if(inIsisSession()) {
exceptionRecognizers.addAll(getServicesInjector().lookupServices(ExceptionRecognizer.class));
} else {
List<String> validationErrors = IsisWicketApplication.get().getValidationErrors();
if(!validationErrors.isEmpty()) {
return new MmvErrorPage(Model.ofList(validationErrors));
}
// not sure whether this can ever happen now...
LOG.warn("Unable to obtain exceptionRecognizers (no session), will be treated as unrecognized exception");
}
String recognizedMessageIfAny = new ExceptionRecognizerComposite(exceptionRecognizers).recognize(ex);