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(Int8(0))ID_NO_AT = FastxErrorCode(Int8(1))SEP_NO_PLUS = FastxErrorCode(Int8(2))SEQ_QUAL_LEN_MISMATCH = FastxErrorCode(Int8(3))ASCII_INVALID = FastxErrorCode(Int8(4))QUALITY_OUT_OF_RANGE = FastxErrorCode(Int8(5))EOF = FastxErrorCode(Int8(6))UNEXPECTED_EOF = FastxErrorCode(Int8(7))BUFFER_EXCEEDED = FastxErrorCode(Int8(8))BUFFER_AT_MAX = FastxErrorCode(Int8(9))OTHER = FastxErrorCode(Int8(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__”fn __init__(value: Int8) -> SelfArgs:
- value (
Int8)
Returns:
Self
__eq__
Section titled “__eq__”fn __eq__(self, other: Self) -> BoolArgs:
- self (
Self) - other (
Self)
Returns:
Bool
__ne__
Section titled “__ne__”fn __ne__(self, other: Self) -> BoolArgs:
- self (
Self) - other (
Self)
Returns:
Bool
message
Section titled “message”fn message(self) -> StringReturn a human-readable message for this error code.
Args:
- self (
Self)
Returns:
String