-
- All Implemented Interfaces:
public final class ChatError.NetworkError extends ChatError
An error resulting from the network operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classChatError.NetworkError.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringmessageprivate final IntegerstreamCodeprivate final IntegerstatusCodeprivate final Throwablecause
-
Constructor Summary
Constructors Constructor Description ChatError.NetworkError(String message, Integer streamCode, Integer statusCode, Throwable cause)
-
Method Summary
Modifier and Type Method Description StringgetMessage()final IntegergetStreamCode()final IntegergetStatusCode()final ThrowablegetCause()Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
ChatError.NetworkError
ChatError.NetworkError(String message, Integer streamCode, Integer statusCode, Throwable cause)
- Parameters:
message- The message describing the error.streamCode- The code returned by the Stream backend.statusCode- HTTP status code or UNKNOWN_STATUS_CODE if not available.cause- The optional Throwable associated with the error.
-
-
Method Detail
-
getMessage
String getMessage()
-
getStreamCode
final Integer getStreamCode()
-
getStatusCode
final Integer getStatusCode()
-
equals
@StreamHandsOff(reason = "Throwable doesn't override the equals method; therefore, it needs custom implementation.") Boolean equals(Object other)
-
hashCode
@StreamHandsOff(reason = "Throwable doesn't override the hashCode method; therefore, it needs custom implementation.") Integer hashCode()
-
-
-
-