Error

@Serializable
class Error(val message: String? = null, val type: String? = null, val param: String? = null, val code: String? = null)

Details about a DeepSeek API error.

All fields are nullable because the API does not guarantee their presence on every failure mode.

Constructors

Link copied to clipboard
constructor(message: String? = null, type: String? = null, param: String? = null, code: String? = null)

Properties

Link copied to clipboard
val code: String?

Machine-readable error code, when applicable

Link copied to clipboard

Human-readable description of what went wrong

Link copied to clipboard

Name of the request parameter that caused the error, when applicable

Link copied to clipboard
val type: String?

High-level category of the error (e.g. invalid_request_error)

Functions

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