1.1 --- a/errors.py Sun Feb 26 00:11:12 2017 +0100
1.2 +++ b/errors.py Sun Feb 26 14:29:36 2017 +0100
1.3 @@ -4,7 +4,7 @@
1.4 Error classes.
1.5
1.6 Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
1.7 - 2014, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 + 2014, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -85,6 +85,13 @@
1.13 def __str__(self):
1.14 return "Error in deduction: %s" % self.message
1.15
1.16 +class OptimiseError(ProgramError):
1.17 +
1.18 + "An error during optimisation."
1.19 +
1.20 + def __str__(self):
1.21 + return "Error in optimisation: %s" % self.message
1.22 +
1.23 class TranslateError(NodeProcessingError):
1.24
1.25 "An error during the module translation process."