Add an ImproperlyConfigured exception.

- To be used to signal when a type is being used without a
   required library.
This commit is contained in:
Ryan Leckey
2013-07-10 01:03:01 -07:00
parent 91dba3e0a6
commit ea80b98bbf
2 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
from .exceptions import ImproperlyConfigured
from .functions import (
sort_query, defer_except, escape_like, primary_keys, table_name
)
@@ -26,6 +27,7 @@ __version__ = '0.14.4'
__all__ = (
ImproperlyConfigured,
coercion_listener,
sort_query,
defer_except,

View File

@@ -0,0 +1,8 @@
"""Global SQLAlchemy-Utils exception classes.
"""
class ImproperlyConfigured(Exception):
"""
SQLAlchemy-Utils is improperly configured; normally due to usage of
a utility that depends on a missing library.
"""