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

com.increase.api.errors.IncreaseServiceException.kt Maven / Gradle / Ivy

There is a newer version: 0.142.0
Show newest version
package com.increase.api.errors

import com.increase.api.core.http.Headers

abstract class IncreaseServiceException(
    private val statusCode: Int,
    private val headers: Headers,
    private val body: String,
    private val error: IncreaseError,
    message: String = "$statusCode: $error",
    cause: Throwable? = null
) : IncreaseException(message, cause) {

    fun statusCode(): Int = statusCode

    fun headers(): Headers = headers

    fun body(): String = body

    fun error(): IncreaseError = error
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy