Skip to main content

Class IdentifierErrorCodes

Namespace: AdCodicem.ValueObjects.Identifiers
Assembly: AdCodicem.ValueObjects.Identifiers.dll

Validation error codes specific to entity identifiers.

public static class IdentifierErrorCodes

Inheritance

objectIdentifierErrorCodes

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Remarks

Every one of them is a rejection an invalid_format would have flattened. A boundary that tells the caller the check character failed, rather than that something was wrong somewhere, is the difference between a support ticket answered in one message and one answered in five.

Fields

InvalidCharacter

The body holds a character outside the Crockford Base32 alphabet.

public const string InvalidCharacter = "value_object.id.invalid_character"

Field Value

string

InvalidChecksum

The trailing check character does not match the body — a typo, or a truncation.

public const string InvalidChecksum = "value_object.id.invalid_checksum"

Field Value

string

InvalidLength

The text is not the exact length the identifier profile requires.

public const string InvalidLength = "value_object.id.invalid_length"

Field Value

string

InvalidPrefix

The text does not carry the prefix declared by the identifier type.

public const string InvalidPrefix = "value_object.id.invalid_prefix"

Field Value

string

UnknownPrefix

The prefix carried by the text belongs to no registered identifier type.

public const string UnknownPrefix = "value_object.id.unknown_prefix"

Field Value

string