Class ApiExceptionFactory


  • public class ApiExceptionFactory
    extends java.lang.Object
    A factory class that returns the corresponding type of exception class from the given status code.
    • Method Detail

      • createException

        public static ApiException createException​(java.lang.Throwable cause,
                                                   StatusCode statusCode,
                                                   boolean retryable)
      • createException

        public static ApiException createException​(java.lang.String message,
                                                   java.lang.Throwable cause,
                                                   StatusCode statusCode,
                                                   boolean retryable)