-
- All Implemented Interfaces:
public class ChatError.NetworkError.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static ChatError.NetworkError.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final ChatError.NetworkErrorfromChatErrorCode(ChatErrorCode chatErrorCode, Integer statusCode, Throwable cause)Creates NetworkError from ChatErrorCode with custom status code and optional cause. -
-
Method Detail
-
fromChatErrorCode
final ChatError.NetworkError fromChatErrorCode(ChatErrorCode chatErrorCode, Integer statusCode, Throwable cause)
Creates NetworkError from ChatErrorCode with custom status code and optional cause.
- Parameters:
chatErrorCode- The ChatErrorCode from which the error should be created.statusCode- HTTP status code or UNKNOWN_STATUS_CODE if not available.cause- The optional Throwable associated with the error.
-
-
-
-