Interface ExceptionHandler
-
public interface ExceptionHandler
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static booleanisDeserializationException(Throwable t)Check to see if the exception of it's cause is coming from what is likely a deserialization issue - either an exception from jackson or a class castbooleanretryAfterException(boolean isStarted, Throwable t)Called to determine if the informer should continue to retry after the given exception.
-
-
-
Method Detail
-
retryAfterException
boolean retryAfterException(boolean isStarted, Throwable t)Called to determine if the informer should continue to retry after the given exception.See also
isDeserializationException(Throwable)that can help determine if the problem is a mismatch with the target client class.- Parameters:
isStarted- true if the informer had already successfully startedt- the non-http goneWatcherExceptionfrom aWatcher.onClose(io.fabric8.kubernetes.client.WatcherException)or throwable from a list/watch call.- Returns:
- true if the informer should continue to retry
-
isDeserializationException
static boolean isDeserializationException(Throwable t)
Check to see if the exception of it's cause is coming from what is likely a deserialization issue - either an exception from jackson or a class cast- Parameters:
t-- Returns:
-
-