WowProblemException
class WowProblemException @JvmOverloads constructor(val code: String, val status: Int, val retry: RetryAdvice, val retryAfter: Duration?, message: String, val result: CommandResult? = null, cause: Throwable? = null, val violations: List<Violation> = emptyList()) : 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, what a retry may do (retry, after retryAfter), as the error catalog says of the code, and the fields the request broke (violations), each with its path, code and message. 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: RetryAdvice, retryAfter: Duration?, message: String, result: CommandResult? = null, cause: Throwable? = null, violations: List<Violation> = emptyList())
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether a retry may get past it (RetryAdvice.NONE is not).
Link copied to clipboard
Link copied to clipboard
The fields the request broke, a problem's violations: a peer's answer's, as the client read it, or those an application's ProblemMapper gives; none by default.