exeption handling for ShadowCalculation, work in progress