JevApiException

open class JevApiException(val status: Int, val body: String?, val headers: Map<String, List<String>>, val requestId: String?, val endpoint: String, message: String, cause: Throwable? = null) : JevException(source)

The API answered with an error, or with a body jev4k couldn't use. body is the raw response body, requestId the x-typesafe-request-id header, and endpoint the method and URL called.

Inheritors

Constructors

Link copied to clipboard
constructor(status: Int, body: String?, headers: Map<String, List<String>>, requestId: String?, endpoint: String, message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
val body: String?
Link copied to clipboard

body parsed as JSON, or null if it isn't JSON.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Int