exported exception to different function