Skip to content

GtfErrorCode

Mojo struct 🡭

@register_passable_trivial
struct GtfErrorCode

Trivial error code returned by low-level GTF field parsers; caller raises.

  • OK = GtfErrorCode(0)
  • INT_EMPTY = GtfErrorCode(1)
  • INT_INVALID = GtfErrorCode(2)
  • STRAND_INVALID = GtfErrorCode(3)
  • PHASE_INVALID = GtfErrorCode(4)
  • FIELD_COUNT = GtfErrorCode(5)
  • 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

Args:

  • self (Self)

Returns:

String