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

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
@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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy