Better error messages for SelectionFileOption.
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 3 Sep 2012 04:29:05 +0000 (07:29 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Fri, 7 Sep 2012 09:34:31 +0000 (12:34 +0300)
commit8d575f9e01772a0c51645310d0325062286067cd
tree4fb783b9ab9bcb86c1ea6f76088784136807e45c
parent9cc0d166a9d6b6e6dc8242a21f8363fe7360a89e
Better error messages for SelectionFileOption.

Use the added exception context information to provide the file name in
the error message when there is a problem with a selection provided with
-sf.  Also improve the error messages for cases where the number of
selections in the file does not match what is expected, or where the
assignment of selections to options is ambiguous.

Closes #656.

Change-Id: I6158960a970e6a22fb28f3872538f1de16883887
src/gromacs/selection/selectioncollection.cpp
src/gromacs/selection/selectionoption.h
src/gromacs/selection/selectionoptionmanager.cpp