Class ErrorUtils

java.lang.Object
org.alfresco.hxi_connector.common.util.ErrorUtils

public class ErrorUtils extends Object
  • Field Details

  • 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

      public static void wrapErrorAndThrowIfNecessary(Exception cause, Set<Class<? extends Throwable>> retryReasons, Class<? extends RuntimeException> runtimeExceptionType)