xyz.cssxsh.pixiv.exception.OtherClientException.kt Maven / Gradle / Ivy
package xyz.cssxsh.pixiv.exception
import io.ktor.client.plugins.*
import io.ktor.client.statement.*
import io.ktor.util.*
import kotlinx.serialization.json.*
public class OtherClientException(response: HttpResponse, content: String) : ResponseException(response, content) {
public val json: JsonElement = Json.parseToJsonElement(content)
override fun toString(): String = with(response) {
"OtherException(url: ${call.request.url}, invalid: ${status}, headers: ${request.headers.toMap()}, json: ${json})"
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy