Companion

object Companion

Functions

Link copied to clipboard
fun of(code: String, message: String, extensions: Map<String, Any?> = emptyMap()): Rejection

The rejection code with message and the structured extensions. code is not blank and not one of the framework's (wow.*): those carry the framework's meaning, such as an HTTP status and whether a client retries. Either is a Misuse of this API, so a decide function that rejects with one fails its command (wow.command.failed) rather than being answered as a refusal.