WowProblemException

class WowProblemException @JvmOverloads constructor(val code: String, val status: Int, val retry: Retry, val retryAfter: Duration?, message: String, val result: CommandResult? = null, cause: Throwable? = null) : RuntimeException

A request Wow did not carry out for a reason of its code: the code (wow.command.busy, wow.storage.unavailable, wow.query.invalid, ...), the HTTP status it is answered with (problem+json), the command's result when it had one, and what a retry may do (retry, after retryAfter), as the error catalog says of the code. The same failure is the same exception in process and over HTTP: each boundary maps its own errors to it once.

Constructors

Link copied to clipboard
constructor(code: String, status: Int, retry: Retry, retryAfter: Duration?, message: String, result: CommandResult? = null, cause: Throwable? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether a retry may get past it (Retry.NONE is not).

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