python-dependency-injector/src/dependency_injector/errors.py

13 lines
263 B
Python
Raw Normal View History

2016-11-04 14:06:47 +03:00
"""Dependency injector errors."""
2015-03-13 18:31:07 +03:00
2016-11-04 14:06:47 +03:00
class Error(Exception):
2015-11-15 00:43:42 +03:00
"""Base error.
All dependency injector errors extend this error class.
"""
class NoSuchProviderError(Error, AttributeError):
"""Error that is raised when provider lookup is failed."""