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.

begin
  # ...
rescue Enolib::Error => e
  e.selection 
  
  # returns ...
  # {
  #   from: { index: 56, line: 3, column: 14 },
  #   to: { index: 78, line: 3, column: 32 }
  # }
end

Next page: Addendum