20 lines
264 B
Python
20 lines
264 B
Python
class ElastiSearchException(Exception):
|
|
pass
|
|
|
|
|
|
class SerializationError(ElastiSearchException):
|
|
pass
|
|
|
|
|
|
class TransportError(ElastiSearchException):
|
|
pass
|
|
|
|
|
|
class NotFoundError(TransportError):
|
|
" 404 "
|
|
|
|
|
|
HTTP_EXCEPTIONS = {
|
|
404: NotFoundError,
|
|
}
|