Skip to content

Commit

Permalink
Added url for NoDataReceivedException
Browse files Browse the repository at this point in the history
  • Loading branch information
Koitharu committed Dec 18, 2024
1 parent ef691b1 commit 754ccc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package org.koitharu.kotatsu.core.exceptions
import okio.IOException

class NoDataReceivedException(
url: String,
val url: String,
) : IOException("No data has been received from $url")
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ fun Throwable.getCauseUrl(): String? = when (this) {
is NotFoundException -> url
is TooManyRequestExceptions -> url
is CaughtException -> cause?.getCauseUrl()
is NoDataReceivedException -> url
is CloudFlareBlockedException -> url
is CloudFlareProtectedException -> url
is HttpStatusException -> url
Expand Down

0 comments on commit 754ccc4

Please sign in to comment.