com.increase.api.errors.IncreaseServiceException.kt Maven / Gradle / Ivy
The newest version!
package com.increase.api.errors
import com.google.common.collect.ListMultimap
abstract class IncreaseServiceException(
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
}