1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/lib/__builtins__/exception/__init__.py Tue Aug 30 21:55:58 2016 +0200
1.3 @@ -0,0 +1,89 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +"""
1.7 +Exception objects.
1.8 +
1.9 +Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.10 +
1.11 +This program is free software; you can redistribute it and/or modify it under
1.12 +the terms of the GNU General Public License as published by the Free Software
1.13 +Foundation; either version 3 of the License, or (at your option) any later
1.14 +version.
1.15 +
1.16 +This program is distributed in the hope that it will be useful, but WITHOUT
1.17 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.18 +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.19 +details.
1.20 +
1.21 +You should have received a copy of the GNU General Public License along with
1.22 +this program. If not, see <http://www.gnu.org/licenses/>.
1.23 +"""
1.24 +
1.25 +from __builtins__.exception.assertion import (
1.26 + AssertionError
1.27 + )
1.28 +
1.29 +from __builtins__.exception.base import (
1.30 + GeneratorExit,
1.31 + IndexError,
1.32 + KeyError,
1.33 + LookupError,
1.34 + NotImplementedError,
1.35 + ReferenceError,
1.36 + StandardError,
1.37 + StopIteration,
1.38 + TypeError,
1.39 + ValueError
1.40 + )
1.41 +
1.42 +from __builtins__.exception.io import (
1.43 + EOFError,
1.44 + IOError,
1.45 + KeyboardInterrupt
1.46 + )
1.47 +
1.48 +from __builtins__.exception.naming import (
1.49 + AttributeError,
1.50 + ImportError,
1.51 + ImportWarning,
1.52 + NameError,
1.53 + UnboundLocalError
1.54 + )
1.55 +
1.56 +from __builtins__.exception.numeric import (
1.57 + ArithmeticError,
1.58 + FloatingPointError,
1.59 + OverflowError,
1.60 + ZeroDivisionError
1.61 + )
1.62 +
1.63 +from __builtins__.exception.program import (
1.64 + DeprecationWarning,
1.65 + FutureWarning,
1.66 + IndentationError,
1.67 + PendingDeprecationWarning,
1.68 + SyntaxError,
1.69 + SyntaxWarning,
1.70 + TabError,
1.71 + UserWarning
1.72 + )
1.73 +
1.74 +from __builtins__.exception.system import (
1.75 + EnvironmentError,
1.76 + MemoryError,
1.77 + OSError,
1.78 + RuntimeError,
1.79 + RuntimeWarning,
1.80 + SystemError,
1.81 + SystemExit
1.82 + )
1.83 +
1.84 +from __builtins__.exception.unicode import (
1.85 + UnicodeDecodeError,
1.86 + UnicodeEncodeError,
1.87 + UnicodeError,
1.88 + UnicodeTranslateError,
1.89 + UnicodeWarning
1.90 + )
1.91 +
1.92 +# vim: tabstop=4 expandtab shiftwidth=4