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

notion.api.v1.exception.NotionAPIError.kt Maven / Gradle / Ivy

package notion.api.v1.exception

import notion.api.v1.http.NotionHttpResponse
import notion.api.v1.model.error.Error

class NotionAPIError(
    val error: Error,
    val httpResponse: NotionHttpResponse,
    override val message: String? = "Got an error from Notion (status: ${error.status}, code: ${error.code}, message: ${error.message})",
    override val cause: Throwable? = null
) : RuntimeException(message, cause)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy