Selection

Returns a selection range object indicating what text area to select if an application wants to offer the user a way to select the parts in a document affected by the error.

>>> try:
...   # ...
... except Error as e:
...   return e.selection
{
  'from': { 'index': 56, 'line': 3, 'column': 14 },
  'to': { 'index': 78, 'line': 3, 'column': 32 }
}

Next page: Addendum