com.increase.api.errors.IncreaseServiceException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of increase-java-core Show documentation
Show all versions of increase-java-core Show documentation
An SDK library for increase
The newest version!
package com.increase.api.errors
import com.google.common.collect.ListMultimap
abstract class IncreaseServiceException
@JvmOverloads
constructor(
private val statusCode: Int,
private val headers: ListMultimap,
private val body: String,
private val error: IncreaseError,
message: String = "$statusCode: $error",
cause: Throwable? = null
) : IncreaseException(message, cause) {
fun statusCode(): Int = statusCode
fun headers(): ListMultimap = headers
fun body(): String = body
fun error(): IncreaseError = error
}