Package-level declarations

Types

Link copied to clipboard
class ErrorStatuses(manifest: Manifest, overrides: Map<String, Int> = emptyMap())

The HTTP status of each error code, from the Manifest's tables:

Link copied to clipboard
class GlobalErrors(manifest: Manifest, options: WowHttpOptions = WowHttpOptions()) : WebExceptionHandler, Ordered

The error handling of the application's own routes (review M; 9.x DefaultGlobalExceptionHandler): a failure that escapes a route the application serves beside Wow's is answered as an RFC 9457 problem of the same shape and codes as the framework routes' (Problem), never Spring's default error body:

Link copied to clipboard
class Problem @InternalWowApi constructor(val status: Int, val title: String, val detail: String?, val code: String?, val violations: List<Violation> = emptyList(), val result: CommandResult? = null, val extensions: Map<String, Any?> = emptyMap(), retryAfter: Long? = null, val version: Int? = null, retry: Retry? = null)

An RFC 9457 problem as the public port writes it: type is urn:wow:error:<code>, the extension members are code, what a retry may do (retry, with Retry-After when a retry may get past it), violations, the whole result of a command that has a ref, the aggregate's version the problem answered, and the extensions of its rejection, each a member of its own name; one without a value, or with the name of a member above (retry and version among them, even on a problem without one) or of RFC 9457's instance, is left out.