it will do it, we don't want to catch these by mistake. That's why there is
this instanceof test
*/
if (throwable instanceof WrapperRuntimeException) {
WrapperRuntimeException wrapperException = (WrapperRuntimeException)throwable;
Exception originalException = wrapperException.originalException();
if (originalException != null && (originalException instanceof java.net.SocketException ||
originalException.getClass().getName().equals(
"org.apache.catalina.connector.ClientAbortException"))) {
// ignore all "Connection reset by peer"
}