if (Thread.currentThread().isInterrupted())
throw new IOException(String.format(
"Cache manager is shutting down, so type (id=%d) cannot be resolved. Interruption being pushed up.",
readerIndex), new InterruptedException());
else
throw new CacheException(String.format(
"Cache manager is either starting up or shutting down but it's not interrupted, so type (id=%d) cannot be resolved.",
readerIndex));
} else {
if (log.isTraceEnabled()) {
log.tracef("Unknown type. Input stream has %s to read", input.available());
log.tracef("Check contents of read externalizers: %s", readers);
}
throw new CacheException(String.format(
"Type of data read is unknown. Id=%d is not amongst known reader indexes.",
readerIndex));
}
}