add GetUpdatesConflict

This commit is contained in:
InsanusMokrassar committed 2021-06-30 13:57:20 +06:00
1 parent a241c91adf
commit 75cebf5aa3
3 files changed
+14

No files matched your search

@@ -24,6 +24,12 @@ fun newRequestException(
plainAnswer,
message,
cause
),
description.contains("Conflict: terminated by other getUpdates request") -> GetUpdatesConflict(
response,
plainAnswer,
message,
cause
)
else -> null
}
@@ -61,3 +67,6 @@ class WrongFileIdentifierException(response: Response, plainAnswer: String, mess
class TooMuchRequestsException(val retryAfter: RetryAfterError, response: Response, plainAnswer: String, message: String?, cause: Throwable?) :
RequestException(response, plainAnswer, message, cause)
class GetUpdatesConflict(response: Response, plainAnswer: String, message: String?, cause: Throwable?) :
RequestException(response, plainAnswer, message, cause)