adm-ntuh-net/ntuh/dojango/data/modelstore/exceptions.py

28 lines
702 B
Python
Raw Normal View History

2024-12-12 02:19:16 +00:00
""" Django ModelStore exception classes
"""
__all__ = ('MethodException', 'FieldException',
'StoreException', 'ServiceException')
class MethodException(Exception):
""" Raised when an error occurs related to a custom
method (Method, ObjectMethod, etc.) call
"""
pass
class FieldException(Exception):
""" Raised when an error occurs related to a custom
StoreField definition
"""
pass
class StoreException(Exception):
""" Raised when an error occurs related to a
Store definition
"""
class ServiceException(Exception):
""" Raised when an error occurs related to a custom
Service definition or servicemethod call
"""