TemplateNotFound

data class TemplateNotFound(val id: TemplateId, val message: String?, val status: Int = HTTP_NOT_FOUND, val code: String? = null) : KarboneError.Api

HTTP 404 when the requested template id is unknown to Carbone.

Constructors

Link copied to clipboard
constructor(id: TemplateId, message: String?, status: Int = HTTP_NOT_FOUND, code: String? = null)

Properties

Link copied to clipboard
open override val code: String?

Carbone error code when provided, e.g. w117.

Link copied to clipboard

Id of the template that was not found.

Link copied to clipboard
open override val message: String?

Raw error text from the Carbone response, if any, never rewritten.

Link copied to clipboard
open override val status: Int

HTTP status returned by Carbone.

Functions

Link copied to clipboard
open override fun describe(): String

Human-readable summary of this error, used as the message of KarboneException.