bi_etl.bulk_loaders.bulk_loader_exception module
- exception bi_etl.bulk_loaders.bulk_loader_exception.BulkLoaderException(base_exception, message=None, password=None)[source]
Bases:
ExceptionWraps the exception from a bulk load, hiding any password and collecting a summary of the load errors.
- __init__(base_exception, message=None, password=None)[source]
- Parameters:
base_exception¶ – The exception that caused the failure. Its text starts the message.
message¶ – Optional text appended to the message.
password¶ – Optional password to replace with asterisks in the message (see
remove_password()).
- add_error(error)[source]
Add an error to the summary shown by
__str__(). Duplicates are ignored.- Parameters:
error¶ – The error, converted with
str.
- add_note(note, /)
Add a note to the exception
- args
- remove_password(password)[source]
Replace every occurrence of password in the message with asterisks.
- Parameters:
password¶ – The text to hide.
- with_traceback(tb, /)
Set self.__traceback__ to tb and return self.