function
error
error[T: Stringable](graph: Optional[Graph], 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:
- graph (
Optional[Graph]
): The graph for context information. - message (
T
): An error message to raise.
Returns:
The error message augmented with call context information.