Go to file
Joshua Harlow eba46f3a8e Provide a common exception caused by base class
Both taskflow and tooz (and others of `raise_with_cause`
should be able to use this as there base exception class
to ensure that there usage of `raise_with_cause` works
as expected).

This adds the class that taskflow was/is using that provides
a 'good enough' version exception chaining (and a decently useful
`pformat` and `__str__` overrides that approximates the exception
chaining message on py2.x).

When used correctly this produces the following:

http://paste.openstack.org/show/326021/

Which is a 'good enough' approximation of exception chaining
on py2.x (and just uses the native exception chaining on py3.x)

This also adds some basic tests to ensure the functionality
provided continues to work as expected.

Change-Id: If814816dec91f7da3c90f4b9b8e2d3cf7228b928
2015-08-04 15:49:21 -07:00
2015-05-05 19:39:52 +00:00
2014-06-18 23:12:10 -04:00
2015-07-15 18:20:18 +00:00
2015-07-15 01:36:48 +00:00

oslo.utils

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.

Description
OpenStack library utils
Readme 8.3 MiB
Languages
Python 100%