
com.testerum.cloud_client.infrastructure.CloudClientErrorResponseException.kt Maven / Gradle / Ivy
package com.testerum.cloud_client.infrastructure
import org.apache.http.impl.EnglishReasonPhraseCatalog
import java.util.*
class CloudClientErrorResponseException(val errorResponse: ErrorCloudResponse) : RuntimeException("HTTP status [${errorResponse.error.code} ${errorResponse.error.code.reasonPhrase}], error message [${errorResponse.error.message}]")
private val Int.reasonPhrase: String
get() = EnglishReasonPhraseCatalog.INSTANCE.getReason(this, Locale.US)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy