85573db275
* PEP8 formatting & package structuring * adding internal function imports into helpers init * changed absolute paths for mock * removed debugging print statements * resolving @fxdgear 's comment
17 lines
414 B
Python
17 lines
414 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
|