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

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

fn __init__(value: Int8) -> Self

Args:

  • value (Int8)

Returns:

Self

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

Args:

  • self (Self)
  • other (Self)

Returns:

Bool

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

Args:

  • self (Self)
  • other (Self)

Returns:

Bool

fn message(self) -> String

Return a human-readable message for this error code.

Args:

  • self (Self)

Returns:

String