Exception handling for locals