minted library
The core of the minted family: the vocabulary every domain package speaks, plus the numeric primitives they build on.
ParseOutcome, MintedFailure and MintedFormatError are what a parse hands back anywhere in
the family. Digit, Digits, the Uint tower, NaturalNumber, Percentage and Probability
are values in their own right and the building blocks the domain types use.
Every type is built on "parse, don't validate": build it through parse (returns a
ParseOutcome, the value or a typed failure) or tryParse (returns null), never a public
constructor, so any instance that exists is guaranteed well-formed. No door throws; getOrThrow
on an outcome is the caller opting in.
The domain types live beside this package: minted_chronology, minted_contact,
minted_finance, minted_geography, minted_identifiers and minted_network. Depend on the
ones you use; this package comes with each of them.
Classes
- MintedFailure
-
Why a
mintedvalue type refused its input. -
ParseFailure<
F extends MintedFailure, T> - A parse that failed, for the reason given.
-
ParseOutcome<
F extends MintedFailure, T> - The result of parsing text: either the value, or the MintedFailure saying why not.
-
ParseSuccess<
F extends MintedFailure, T> - A parse that produced value.
Exceptions / Errors
- MintedFormatError
- The error ParseOutcome.getOrThrow raises, carrying the typed failure and its rendered message.