private void throwExceptionIfRequired() throws StoreException {
      if (runtimeException != null) {
        throw runtimeException;
      }
      if (storeException != null) {
        throw storeException;
      }
    }
Throws a {@link RuntimeException} or {@link StoreException} if so configured
@throws StoreException
ambry-server/src/test/java/com/github/ambry/server/MockStorageManager.java