update exception throwing