Skip to content

Exceptions

phil/passwords

Every exception of the library implements Exception\PasswordsException.

ExceptionExtendsThrown when
InvalidPolicyInvalidArgumentExceptionA PasswordPolicy or PassphrasePolicy out of bounds: a length or a number of words, no character set, a separator too long or with a letter.
InvalidWordlistInvalidArgumentExceptionA wordlist of fewer than 256 words, or with a word empty, too long, repeated or with whitespace; an unknown bundled language.
InvalidDictionaryInvalidArgumentExceptionA dictionary without a name, an entry empty or longer than 64 characters, an unknown bundled dictionary.
BreachCheckUnavailableRuntimeExceptionA breach source that cannot answer: network, status, timeout, size, malformed answer. BreachChecker catches it.

The estimator and the generators throw nothing else: any string is a password the estimator reads.