DeepSeekError

@Serializable
class DeepSeekError(val error: DeepSeekError.Error)

JSON body returned by the DeepSeek API when a request fails.

The SDK deserialises this payload and wraps it inside a DeepSeekException together with the HTTP status code and headers. Use DeepSeekException.error to access it from a caught exception.

Constructors

Link copied to clipboard
constructor(error: DeepSeekError.Error)

Types

Link copied to clipboard
@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.

Properties

Link copied to clipboard

The nested error object describing what went wrong

Functions

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