throw new CacheServerNotFoundException("Failed to find data nodes for cache: " + cctx.name()); throw new CacheServerNotFoundException("Failed to find data nodes for cache: " + extraCacheName);
throw new CacheServerNotFoundException("Failed to find data nodes for cache: " + cacheName);
/** * @param e Ignite checked exception. * @return CacheException runtime exception, never null. */ public static @NotNull RuntimeException convertToCacheException(IgniteCheckedException e) { IgniteClientDisconnectedCheckedException disconnectedErr = e.getCause(IgniteClientDisconnectedCheckedException.class); if (disconnectedErr != null) { assert disconnectedErr.reconnectFuture() != null : disconnectedErr; e = disconnectedErr; } if (e.hasCause(CacheWriterException.class)) return new CacheWriterException(U.convertExceptionNoWrap(e)); if (e instanceof CachePartialUpdateCheckedException) return new CachePartialUpdateException((CachePartialUpdateCheckedException)e); else if (e.hasCause(ClusterTopologyServerNotFoundException.class)) return new CacheServerNotFoundException(e.getMessage(), e); else if (e instanceof SchemaOperationException) return new CacheException(e.getMessage(), e); CacheException ce = X.cause(e, CacheException.class); if (ce != null) return ce; if (e.getCause() instanceof NullPointerException) return (NullPointerException)e.getCause(); if (e.getCause() instanceof SecurityException) return (SecurityException)e.getCause(); C1<IgniteCheckedException, IgniteException> converter = U.getExceptionConverter(e.getClass()); return converter != null ? new CacheException(converter.apply(e)) : new CacheException(e); }
throw new CacheServerNotFoundException("Failed to find data nodes [cache=" + cctx.name() + ", part=" + p + "]"); throw new CacheServerNotFoundException("Failed to find data nodes [cache=" + extraCctx.name() + ", part=" + p + "]");
throw new CacheServerNotFoundException(e.getMessage(), e);
/** * @param e Ignite checked exception. * @return CacheException runtime exception, never null. */ @NotNull public static RuntimeException convertToCacheException(IgniteCheckedException e) { IgniteClientDisconnectedCheckedException disconnectedErr = e.getCause(IgniteClientDisconnectedCheckedException.class); if (disconnectedErr != null) { assert disconnectedErr.reconnectFuture() != null : disconnectedErr; e = disconnectedErr; } if (e.hasCause(CacheWriterException.class)) return new CacheWriterException(U.convertExceptionNoWrap(e)); if (e instanceof CachePartialUpdateCheckedException) return new CachePartialUpdateException((CachePartialUpdateCheckedException)e); else if (e instanceof ClusterTopologyServerNotFoundException) return new CacheServerNotFoundException(e.getMessage(), e); else if (e instanceof SchemaOperationException) return new CacheException(e.getMessage(), e); CacheException ce = X.cause(e, CacheException.class); if (ce != null) return ce; if (e.getCause() instanceof NullPointerException) return (NullPointerException)e.getCause(); if (e.getCause() instanceof SecurityException) return (SecurityException)e.getCause(); C1<IgniteCheckedException, IgniteException> converter = U.getExceptionConverter(e.getClass()); return converter != null ? new CacheException(converter.apply(e)) : new CacheException(e); }