Class ErrorEventsHelper


  • public class ErrorEventsHelper
    extends java.lang.Object
    • Constructor Detail

      • ErrorEventsHelper

        public ErrorEventsHelper()
    • Method Detail

      • handleError

        public static void handleError​(ICallback callback,
                                       java.lang.Object errorResponse)
      • handleError

        public static void handleError​(java.lang.Object errorResponse)
      • handleError

        public static void handleError​(ErrorResponse serverError)
      • handleError

        public static void handleError​(ICallback callback,
                                       java.lang.Throwable t)
      • handleError

        public static void handleError​(java.lang.Throwable t)
      • parseError

        @Nullable
        public static ErrorResponse parseError​(@Nullable
                                               retrofit2.Response response)
        Parse Response to ErrorResponse
        Parameters:
        response - the HTTP response
        Returns:
        ErrorResponse containing the code and message