FastxErrorCode
Mojo struct 🡭
FastxErrorCode
Section titled “FastxErrorCode”@register_passable_trivialstruct FastxErrorCodeTrivial error code returned by low-level parsing/validation; caller builds and raises.
Aliases
Section titled “Aliases”OK = FastxErrorCode(0)ID_NO_AT = FastxErrorCode(1)SEP_NO_PLUS = FastxErrorCode(2)SEQ_QUAL_LEN_MISMATCH = FastxErrorCode(3)ASCII_INVALID = FastxErrorCode(4)QUALITY_OUT_OF_RANGE = FastxErrorCode(5)EOF = FastxErrorCode(6)UNEXPECTED_EOF = FastxErrorCode(7)BUFFER_EXCEEDED = FastxErrorCode(8)BUFFER_AT_MAX = FastxErrorCode(9)OTHER = FastxErrorCode(10)
Fields
Section titled “Fields”- value (
Int8)
Implemented traits
Section titled “Implemented traits”AnyType, Copyable, Equatable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable
Methods
Section titled “Methods”__init__
Section titled “__init__”def __init__(value: Int8) -> SelfArgs:
- value (
Int8)
Returns:
Self
__eq__
Section titled “__eq__”def __eq__(self, other: Self) -> BoolArgs:
- self (
Self) - other (
Self)
Returns:
Bool
__ne__
Section titled “__ne__”def __ne__(self, other: Self) -> BoolArgs:
- self (
Self) - other (
Self)
Returns:
Bool
message
Section titled “message”def message(self) -> StringReturn a human-readable message for this error code.
Args:
- self (
Self)
Returns:
String