When executing the batch_load_fn if an error occurs, the exception been raised is not the original one, but an Exception which references the original one in its message, like:
Data loader batch_load_fn function raised an Exception: DomainError("Invalid id 'test' in id ",)
My custom exception is a DomainError but it gets lost and re-raised as an Exception
When executing the
batch_load_fn
if an error occurs, the exception been raised is not the original one, but anException
which references the original one in its message, like:My custom exception is a
DomainError
but it gets lost and re-raised as anException