-
- All Implemented Interfaces:
-
java.io.Serializable
public final class JSONKtorClientException extends JSONKtorException
Exception class for errors in
receiveStreamJSONetc.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringurlStringprivate final HttpStatusCodestatusCodeprivate final HeadersresponseHeadersprivate final ByteArrayresponseBodyprivate final JSONConfigconfigprivate final Throwablecauseprivate final Stringmessage
-
Constructor Summary
Constructors Constructor Description JSONKtorClientException(String urlString, HttpStatusCode statusCode, Headers responseHeaders, ByteArray responseBody, JSONConfig config)
-
Method Summary
Modifier and Type Method Description final StringgetUrlString()final HttpStatusCodegetStatusCode()final HeadersgetResponseHeaders()final ByteArraygetResponseBody()final JSONConfiggetConfig()final <T extends Any> Tbody()Get the response body as an object of the implied type. final <T extends Any> Tbody(KType type)Get the response body as an object of the specified KType. final StringbodyAsString()Get the response body as a string. -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class io.kjson.JSONException
getMessage -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getUrlString
final String getUrlString()
-
getStatusCode
final HttpStatusCode getStatusCode()
-
getResponseHeaders
final Headers getResponseHeaders()
-
getResponseBody
final ByteArray getResponseBody()
-
getConfig
final JSONConfig getConfig()
-
body
final <T extends Any> T body(KType type)
Get the response body as an object of the specified KType.
-
bodyAsString
final String bodyAsString()
Get the response body as a string.
-
-
-
-