Merge branch 'master' into sync-part-final

This commit is contained in:
KaiserBh
2023-08-22 15:31:25 +10:00
committed by GitHub
38 changed files with 282 additions and 123 deletions

View File

@ -143,4 +143,11 @@ fun <T> decodeFromJsonResponse(
}
}
/**
* Exception that handles HTTP codes considered not successful by OkHttp.
* Use it to have a standardized error message in the app across the extensions.
*
* @since extensions-lib 1.5
* @param code [Int] the HTTP status code
*/
class HttpException(val code: Int) : IllegalStateException("HTTP error $code")