Skip to main content

Mojo struct

DictKeyError

@register_passable(trivial) struct DictKeyError

A custom error type for Dict lookups that fail.

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, Writable

comptime members

__copyinit__is_trivial

comptime __copyinit__is_trivial = True

__del__is_trivial

comptime __del__is_trivial = True

__moveinit__is_trivial

comptime __moveinit__is_trivial = True

Methods

write_to

write_to(self, mut writer: T)

This always writes "KeyError".

Args:

  • writer (T): The writer to write to.

Was this page helpful?