Where in the statement text a condition was raised, said three ways.
line and column are 1-based and the column counts characters
rather than bytes, so a line of multi-byte text does not read as
wider than it looks. That pair is what an editor or a shell wants:
it has printed the line already and needs somewhere to put the
caret.
offset is the same place as a byte index into the statement, and
it is here for the caller the pair does not serve: a tool that holds
the text and wants to slice it, an editor mapping into a buffer it
indexes by byte, a highlighter marking a range. Recovering it from
the pair means counting lines and characters again, over text the
engine had in hand when it raised the condition. It is always on a
character boundary of that text, so slicing at it cannot panic.
The place offset bytes into source. An offset past the end
lands at the end, which is where an error about a query that
stopped too early belongs, and an offset inside a character
lands on the start of that character.