Rejection

class Rejection @InternalWowApi constructor(val code: String, val message: String, val extensions: Map<String, Any?> = emptyMap())

Why a command was refused. code is stable and machine-readable (it names an error in the Manifest); message is for people. extensions are the rejection's structured data, by name, each a JSON value (a string, a number, a boolean, a list, a map, or a data class of them), such as the ids and titles of what blocks the command: the command's result carries them (me.ahoo.wow.api.result.ErrorInfo.extensions), and an HTTP answer writes each as an extension member of its problem.

Fields may be added: a decide function rejects with Decision.reject; construct a rejection itself with of. The constructor is internal to Wow.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

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

Functions

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