io.logto.sdk.core.exception.ResponseException.kt Maven / Gradle / Ivy
The newest version!
package io.logto.sdk.core.exception
class ResponseException(
type: Type,
cause: Throwable? = null,
) : RuntimeException(type.name, cause) {
var responseCode: Int? = null
var responseMessage: String? = null
var responseContent: String? = null
enum class Type {
REQUEST_FAILED,
ERROR_RESPONSE,
EMPTY_RESPONSE,
}
}