Class ExceptionUtils
java.lang.Object
org.springframework.data.elasticsearch.support.ExceptionUtils
- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isCausedByConnectionException
(Throwable throwable) checks if the given throwable is aConnectException
or has one in its cause chain
-
Method Details
-
isCausedByConnectionException
checks if the given throwable is aConnectException
or has one in its cause chain- Parameters:
throwable
- the throwable to check- Returns:
- true if throwable is caused by a
ConnectException
-