FailureDescription

What a FailureDescriber says of a failure, which leaves the service in a parked aggregate's reason: parts that carry no text the failure or a value gave, so that a describer cannot put a value back, not even one its failure's message quotes.

  • phrase: a constant of an enum, written as its name in lower case, _ as a space (DUPLICATE_KEY is duplicate key): words the describer's code holds, never a value;

  • name: the name of a property, an index, a constraint, a topic, or a code such as an SQL state, quoted: at most MAX_NAME_LENGTH letters, digits, _, $, . and -, which no free text, quoted value, e-mail address or card number fits;

  • path: where in a document, by property names (PathSegment.property), array indices (PathSegment.index) and map entries (PathSegment.KEY, written {key}: a map's key is data);

  • type: a class, by its simple name;

  • code: a number, such as a driver's error code.

None takes a String of free text. A name is still a string the describer passes, so a describer names what its failure's structured fields name (ServerErrorMessage.constraint, a Jackson reference's property), and Wow's own describers are tested to put no value of the failures they describe into it.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Part

One part of a description, written as text; built by phrase, name, path, type or code alone.

Link copied to clipboard

One segment of a path: a property by its name, an array's index, or a map's entry, whose key is data.

Properties

Link copied to clipboard

The description as text: its parts, each as it is written, separated by a space.

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