Skip to content

EOFError

Mojo struct 🡭

@register_passable_trivial
struct EOFError

Raised when no more input is available (end of file or stream).

FastqParser and LineIterator raise EOFError when next_view()/next_record() or next_line() is called and there is no more data. Iterators catch it and raise StopIteration instead.

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

def write_to(self, mut writer: T)

Args:

  • self (Self)
  • writer (T)