Alphabet validation errors for tagged template and literal constructors.
Thrown when a sequence string fails alphabet validation (invalid characters)
or biological constraints (primer length). Carries structured fields so
callers can programmatically inspect which alphabet failed and what the
offending input was, without parsing the error message.
Alphabet validation errors for tagged template and literal constructors.
Thrown when a sequence string fails alphabet validation (invalid characters) or biological constraints (primer length). Carries structured fields so callers can programmatically inspect which alphabet failed and what the offending input was, without parsing the error message.
Example