1.1 --- a/lib/__builtins__/exception/naming.py Sat Dec 10 14:02:44 2016 +0100
1.2 +++ b/lib/__builtins__/exception/naming.py Sat Dec 10 14:04:01 2016 +0100
1.3 @@ -3,7 +3,10 @@
1.4 """
1.5 Name-related exception objects.
1.6
1.7 -Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 +Errors regarding unrecognised names or import failures are not provided since
1.9 +these errors should occur during program compilation.
1.10 +
1.11 +Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.12
1.13 This program is free software; you can redistribute it and/or modify it under
1.14 the terms of the GNU General Public License as published by the Free Software
1.15 @@ -19,10 +22,14 @@
1.16 this program. If not, see <http://www.gnu.org/licenses/>.
1.17 """
1.18
1.19 -class AttributeError(Exception): pass
1.20 -class ImportError(Exception): pass
1.21 -class ImportWarning(Warning): pass
1.22 -class NameError(Exception): pass
1.23 -class UnboundLocalError(Exception): pass
1.24 +class AttributeError(Exception):
1.25 +
1.26 + "An error indicating an invalid attribute for an object."
1.27 +
1.28 + def __init__(self, name):
1.29 +
1.30 + "Initialise the exception with the given 'name'."
1.31 +
1.32 + self.name = name
1.33
1.34 # vim: tabstop=4 expandtab shiftwidth=4