has_exception_cause_in_chain

PlasmaCalcs.tools.pytools.has_exception_cause_in_chain(err, err_type)

returns whether error is an instance of err_type or was raised

from an error which is an instance of err_type (directly or indirectly).