15 lines
412 B
Python
15 lines
412 B
Python
from ..exceptions import ElasticsearchException
|
|
|
|
|
|
class BulkIndexError(ElasticsearchException):
|
|
@property
|
|
def errors(self):
|
|
""" List of errors from execution of the last chunk. """
|
|
return self.args[1]
|
|
|
|
|
|
class ScanError(ElasticsearchException):
|
|
def __init__(self, scroll_id, *args, **kwargs):
|
|
super(ScanError, self).__init__(*args, **kwargs)
|
|
self.scroll_id = scroll_id
|