1.1 --- a/lib/__builtins__/exception/io.py Tue Dec 06 18:18:47 2016 +0100
1.2 +++ b/lib/__builtins__/exception/io.py Tue Dec 06 20:32:33 2016 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Input/output exception objects.
1.6
1.7 -Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2016 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 @@ -20,7 +20,17 @@
1.13 """
1.14
1.15 class EOFError(Exception): pass
1.16 -class IOError(Exception): pass
1.17 +
1.18 +class IOError(Exception):
1.19 +
1.20 + "An input/output error."
1.21 +
1.22 + def __init__(self, value):
1.23 +
1.24 + "Initialise the exception with the given 'value'."
1.25 +
1.26 + self.value = value
1.27 +
1.28 class KeyboardInterrupt(Exception): pass
1.29
1.30 # vim: tabstop=4 expandtab shiftwidth=4