dose.3.1.2: add exceptions patch

to raise exceptions rather than call exit()

Source: https://gforge.inria.fr/plugins/scmgit/cgi-bin/gitweb.cgi?p=dose/dose.git;a=commit;h=3d9b403766e7741e84fb648dde7867dd6f869b38
Merge pull request #1749 from AltGr/cudf-exceptions-patch

dose.3.1.2: add exceptions patch