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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!