Mojo function
format_error
format_error[T: Stringable](graph: Optional[Graph], message: T, location: Optional[_SourceLocation] = #kgen.none) -> String
Formats an error string that includes call information.
Parameters:
- βT (
Stringable
): The message type.
Args:
- βgraph (
Optional[Graph]
): The graph for context information. - βmessage (
T
): An error message to raise. - βlocation (
Optional[_SourceLocation]
): An optional location for a more specific error message.
Returns:
The string for an error message augmented with call context information.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
π What went wrong?