Depends where the error occurred: If you look at
the documentation[
^] it says:
Return Value
Type: System.Int32
The file line number, or 0 (zero) if the file line number cannot be determined.
So if the location of the error has no file information, you will get zero.
The GetFileColumnNumber returns zero under the same conditions.
Try it by deliberately throwing an error in your own code and see what happens.