Skip to content

FastxErrorCode

Mojo struct 🡭

@register_passable_trivial
struct FastxErrorCode

Trivial error code returned by low-level parsing/validation; caller builds and raises.

  • 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)
  • value (Int8)

AnyType, Copyable, Equatable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable

def __init__(value: Int8) -> Self

Args:

  • value (Int8)

Returns:

Self

def __eq__(self, other: Self) -> Bool

Args:

  • self (Self)
  • other (Self)

Returns:

Bool

def __ne__(self, other: Self) -> Bool

Args:

  • self (Self)
  • other (Self)

Returns:

Bool

def message(self) -> String

Return a human-readable message for this error code.

Args:

  • self (Self)

Returns:

String