Error handling preserves stack traces