All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ecwid.clickhouse.Exceptions.kt Maven / Gradle / Ivy

package com.ecwid.clickhouse

open class ClickHouseException : RuntimeException {

	constructor() : super()

	constructor(message: String) : super(message)

	constructor(message: String, cause: Throwable) : super(message, cause)
}

class ClickHouseHttpException(
	val statusCode: Int,
	val statusMessage: String,
	val responseContent: String,
	val sqlQuery: String
) : ClickHouseException() {

	override val message = "HTTP $statusCode ($statusMessage): $responseContent (query: ${sqlQuery.take(500)})"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy