Skip to main content

function

error

error[T: Stringable](message: T) -> Error

Creates an error to raise that includes call information.

This should be called internally at every point that can raise inside Graph API. Currently this only includes the specific call site of the raise. We hope to improve this in the future.

Parameters:

  • T (Stringable): The message type.

Args:

  • message (T): An error message to raise.

Returns:

The error message augmented with call context information.