if (proxy != null) {
proxy.handle(actual, request, response);
}
else if (throwable instanceof FileUploadLimitExceededException) {
Resolution resolution = handle((FileUploadLimitExceededException) throwable,
request, response);
if (resolution != null)
resolution.execute(request, response);
}
else if (throwable instanceof SourcePageNotFoundException) {
Resolution resolution = handle((SourcePageNotFoundException) throwable, request,
response);
if (resolution != null)
resolution.execute(request, response);
}
else {
// If there's no sensible proxy, rethrow the original throwable,
// NOT the unwrapped one since they may add extra information
log.warn(throwable, "Unhandled exception caught by the Stripes default exception handler.");