Skip to main content
Log in

Mojo function

abort

abort[result: AnyType = None]() -> result

Calls a target dependent trap instruction if available.

Parameters:

  • result (AnyType): The result type.

Returns:

A null result type.

abort[result: AnyType = None, *, W: Writable](message: W) -> result

Calls a target dependent trap instruction if available.

Parameters:

  • result (AnyType): The result type.
  • W (Writable): The Writable type.

Args:

  • message (W): The message to include when aborting.

Returns:

A null result type.