Add an ImproperlyConfigured exception.
- To be used to signal when a type is being used without a required library.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
from .exceptions import ImproperlyConfigured
|
||||||
from .functions import (
|
from .functions import (
|
||||||
sort_query, defer_except, escape_like, primary_keys, table_name
|
sort_query, defer_except, escape_like, primary_keys, table_name
|
||||||
)
|
)
|
||||||
@@ -26,6 +27,7 @@ __version__ = '0.14.4'
|
|||||||
|
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
ImproperlyConfigured,
|
||||||
coercion_listener,
|
coercion_listener,
|
||||||
sort_query,
|
sort_query,
|
||||||
defer_except,
|
defer_except,
|
||||||
|
8
sqlalchemy_utils/exceptions.py
Normal file
8
sqlalchemy_utils/exceptions.py
Normal 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.
|
||||||
|
"""
|
Reference in New Issue
Block a user