# HG changeset patch # User Paul Boddie # Date 1480457535 -3600 # Node ID 03dad612d9e7c50fde962774f5289cf80fa9f755 # Parent c498ceec120efde8dc8ffe7984c35d2b7fd90978 Expanded ValueError to accept a value argument. diff -r c498ceec120e -r 03dad612d9e7 lib/__builtins__/exception/base.py --- a/lib/__builtins__/exception/base.py Tue Nov 29 22:09:52 2016 +0100 +++ b/lib/__builtins__/exception/base.py Tue Nov 29 23:12:15 2016 +0100 @@ -29,6 +29,12 @@ class KeyError(Exception): pass class NotImplementedError(Exception): pass class StopIteration(Exception): pass -class ValueError(Exception): pass + +class ValueError(Exception): + + "An error concerned with a particular value." + + def __init__(self, value): + self.value = value # vim: tabstop=4 expandtab shiftwidth=4