Skip to content

FaiErrorCode

Mojo struct 🡭

@register_passable_trivial
struct FaiErrorCode

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

  • OK = FaiErrorCode(0)
  • INT_EMPTY = FaiErrorCode(1)
  • INT_INVALID = FaiErrorCode(2)
  • FIELD_COUNT = FaiErrorCode(3)
  • 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