3 ms·
Python 3.3 fixes this, by implementing PEP 415¹, which keeps the original exception available by using this syntax: except SomeException as exception: r
by teddyh 13y ago
Python 3.3 fixes this, by implementing PEP 415¹, which keeps the original exception available by using this syntax:
except SomeException as exception:
raise NewException("stuff happened") from exception
1) http://www.python.org/dev/peps/pep-0415/ http://www.python.org/dev/peps/pep-0415/
- jafaku 13y agoPHP added exception chaining in 5.3.0 (a few years ago). See $previous: http://www.php.net/manual/en/exception.construct.php http://www.php.net/manual/en/exception.construct.php