Chain errors to preserve provenance
Explicitly chains two errors together by setting the second error as the cause of the first error.
err1 (Error): The primary or outer Error.
Error
err2 (Error): The underlying cause Error.
The chained Error value.