Class ErrorEventsHelper
- java.lang.Object
-
- com.cheetahdigital.corekit.helpers.ErrorEventsHelper
-
public class ErrorEventsHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ErrorEventsHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
handleError(ICallback callback, ErrorResponse errorResponse)
static void
handleError(ICallback callback, java.lang.Object errorResponse)
static void
handleError(ICallback callback, java.lang.Throwable t)
static void
handleError(ErrorResponse serverError)
static void
handleError(java.lang.Object errorResponse)
static void
handleError(java.lang.Throwable t)
static ErrorResponse
parseError(retrofit2.Response response)
ParseResponse
toErrorResponse
-
-
-
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(ICallback callback, ErrorResponse 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)
ParseResponse
toErrorResponse
- Parameters:
response
- the HTTP response- Returns:
ErrorResponse
containing the code and message
-
-