Improve selection error messages (use exceptions)
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 8 Nov 2014 10:20:25 +0000 (12:20 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 24 Jan 2015 15:25:43 +0000 (16:25 +0100)
commitb39e1067abcd8c76af9fd45a0d4a8f70b009cdfe
tree34e04608ed9bdf5f48698307d4f99f7d316c83ea
parentfd33b2219d5c14785a1f4f2320c6900323c3ae68
Improve selection error messages (use exceptions)

Make all selection parsing error handling use exceptions for error
reporting, and improve the understandability and context-sensitivity of
the messages.  Make the code in params.cpp exception-safe.

Resolves #655 (except for some pending cleanup of now-unused code).

Change-Id: If7bc1da91041232db23389c660cc2cd9c50addda
src/gromacs/selection/keywords.h
src/gromacs/selection/params.cpp
src/gromacs/selection/parsetree.cpp
src/gromacs/selection/parsetree.h
src/gromacs/selection/sm_keywords.cpp
src/gromacs/selection/sm_same.cpp
src/gromacs/utility/exceptions.cpp
src/gromacs/utility/scoped_cptr.h