operator > method
- Expectation error
Returns a new validator that will return the error
message if the validation fails
This is Sugar, it allows for more concise validator composition.
The underlying child's error code
(and data
) are preserved and propagated into the
provided error
(only the message is replaced). See docs/expectation_codes.md for the
canonical list of built‑in codes.
Implementation
IValidator operator >(Expectation error) => withExpectation(this, error);