public interface ExceptionHandler
Modifier and Type | Method and Description |
---|---|
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
|
boolean |
retryAfterException(boolean isStarted,
Throwable t)
Called to determine if the informer should continue to retry after the given exception.
|
boolean retryAfterException(boolean isStarted, Throwable t)
See also isDeserializationException(Throwable)
that can help determine if the
problem is a mismatch with the target client class.
isStarted
- true if the informer had already successfully startedt
- the non-http gone WatcherException
from a
Watcher.onClose(io.fabric8.kubernetes.client.WatcherException)
or throwable from a list/watch call.static boolean isDeserializationException(Throwable t)
t
- Copyright © 2015–2024 Red Hat. All rights reserved.