ErrorManifest

class ErrorManifest @InternalWowApi constructor(val code: String, val status: Int, val description: String? = null, val retry: Retry = Retry.NONE, val retryAfter: Int? = null)

An error code a client may receive: its code, the HTTP status it is answered with, what it means, and what a retry may do (retry), after retryAfter seconds, the Retry-After of its problem: one when a retry may get past it, none otherwise. The code is the code of a CommandResult and of a problem+json body, whose type is urn:wow:error:<code> and whose retry member is retry's.

Fields may be added: pass the constructor's arguments by name.

Constructors

Link copied to clipboard
constructor(code: String, status: Int, description: String? = null, retry: Retry = Retry.NONE, retryAfter: Int? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Int

Functions

Link copied to clipboard
fun ErrorManifest.copyWith(code: String = this.code, status: Int = this.status, description: String? = this.description, retry: Retry = this.retry, retryAfter: Int? = this.retryAfter): ErrorManifest
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String