1.1 --- a/lib/__builtins__/exception/base.py Mon Jan 08 01:15:11 2018 +0100
1.2 +++ b/lib/__builtins__/exception/base.py Mon Jan 15 01:12:29 2018 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Base exception objects. See __builtins__.core for the core exceptions.
1.6
1.7 -Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2016, 2018 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 @@ -29,15 +29,21 @@
1.13
1.14 "An error condition involving an index."
1.15
1.16 - def __init__(self, index):
1.17 - self.index = index
1.18 + def __init__(self, .index):
1.19 +
1.20 + "Initialise the exception with the given 'index'."
1.21 +
1.22 + pass
1.23
1.24 class KeyError(LookupError):
1.25
1.26 "An error concerned with a dictionary key."
1.27
1.28 - def __init__(self, key):
1.29 - self.key = key
1.30 + def __init__(self, .key):
1.31 +
1.32 + "Initialise the exception with the given 'key'."
1.33 +
1.34 + pass
1.35
1.36 class RuntimeError(Exception):
1.37
1.38 @@ -49,8 +55,11 @@
1.39
1.40 "An error indicating an unimplemented function or method."
1.41
1.42 - def __init__(self, name):
1.43 - self.name = name
1.44 + def __init__(self, .name):
1.45 +
1.46 + "Initialise the exception with the given 'name'."
1.47 +
1.48 + pass
1.49
1.50 class StopIteration(Exception):
1.51
1.52 @@ -62,7 +71,10 @@
1.53
1.54 "An error concerned with a particular value."
1.55
1.56 - def __init__(self, value):
1.57 - self.value = value
1.58 + def __init__(self, .value):
1.59 +
1.60 + "Initialise the exception with the given 'value'."
1.61 +
1.62 + pass
1.63
1.64 # vim: tabstop=4 expandtab shiftwidth=4