Skip to content

Instantly share code, notes, and snippets.

@thomaskioko
Last active July 25, 2023 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomaskioko/4d7f924af0eb8a9d4b3524f0e69a296c to your computer and use it in GitHub Desktop.
Save thomaskioko/4d7f924af0eb8a9d4b3524f0e69a296c to your computer and use it in GitHub Desktop.
class HttpExceptions(
response: HttpResponse,
failureReason: String?,
cachedResponseText: String,
) : ResponseException(response, cachedResponseText) {
override val message: String = "Status: ${response.status}." + " Failure: $failureReason"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment