22 lines
358 B
Python
22 lines
358 B
Python
__all__ = ['ElastiSearchException', 'SerializationError', 'TransportError', 'NotFoundError']
|
|
|
|
class ElastiSearchException(Exception):
|
|
pass
|
|
|
|
|
|
class SerializationError(ElastiSearchException):
|
|
pass
|
|
|
|
|
|
class TransportError(ElastiSearchException):
|
|
pass
|
|
|
|
|
|
class NotFoundError(TransportError):
|
|
" 404 "
|
|
|
|
|
|
HTTP_EXCEPTIONS = {
|
|
404: NotFoundError,
|
|
}
|