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

Args:

  • self (Self)

Returns:

String