Class ErrorUtils
java.lang.Object
org.alfresco.hxi_connector.common.util.ErrorUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowExceptionOnUnexpectedStatusCode(int actualStatusCode, int expectedStatusCode) static voidwrapErrorAndThrowIfNecessary(Exception cause, Set<Class<? extends Throwable>> retryReasons, Class<? extends RuntimeException> runtimeExceptionType) static RuntimeExceptionwrapErrorIfNecessary(Exception cause, Set<Class<? extends Throwable>> retryReasons)
-
Field Details
-
UNEXPECTED_STATUS_CODE_MESSAGE
- See Also:
-
-
Constructor Details
-
ErrorUtils
public ErrorUtils()
-
-
Method Details
-
throwExceptionOnUnexpectedStatusCode
public static void throwExceptionOnUnexpectedStatusCode(int actualStatusCode, int expectedStatusCode) -
wrapErrorIfNecessary
public static RuntimeException wrapErrorIfNecessary(Exception cause, Set<Class<? extends Throwable>> retryReasons) -
wrapErrorAndThrowIfNecessary
-