Skip to main content
Version: 1.3.1

Enumeration: NameErrorType

The error types supported by Namefully.

Enumeration Members

INPUT

INPUT: 0

Thrown when a name entry/argument is incorrect.

For example, a name should have a minimum of 2 characters, so an empty string or a string of one character would cause this kind of error.


NOT_ALLOWED

NOT_ALLOWED: 2

Thrown by not allowed operations such as in NameBuilder or name formatting.

See also: NotAllowedError, Namefully.format.


UNKNOWN

UNKNOWN: 3

Thrown by any other unknown sources or unexpected situation.


VALIDATION

VALIDATION: 1

Thrown when the name components do not match the validation rules if the Config.bypass is not flagged up. This bypass option skips the validation rules.

See also: ValidationError