Optional
Get the span of the error, this can be used to highlight the error in the source code
Get the kind of the error that occurred
Serialize the error as a json object
Format the error message including a stack trace
Get the span of the error, this can be used to highlight the error in the source code