Skip to main content

Mojo function

abort

abort() -> Never

Terminates execution, using a target dependent trap instruction if available.

Returns:

Never

abort[*, prefix: StringSlice[StaticConstantOrigin] = "ABORT:"](message: String) -> Never

Calls a target dependent trap instruction if available.

Parameters:

  • prefix (StringSlice): A static string prefix to include before the message.

Args:

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

Returns:

Never

Was this page helpful?