1
0
mirror of https://github.com/etesync/android synced 2025-01-22 13:40:55 +00:00

Don't pop up notifications on bad gatewary errors as most likely a server restart.

The server is and should be monitored for misconfigurations, we don't want to annoy
users with temporary issues.
This commit is contained in:
Tom Hacohen 2019-02-13 18:54:38 +00:00
parent ea0add8f45
commit 4d661117e5

View File

@ -16,7 +16,7 @@ class Exceptions {
class UserInactiveException(response: Response, message: String?) : HttpException(response, message)
class BadGatewayException(response: Response, message: String) : HttpException(response, message)
class BadGatewayException(response: Response, message: String) : IgnorableHttpException(response, message)
class ServiceUnavailableException : IgnorableHttpException {
var retryAfter: Long = 0