HF RL Explorer

Task: Fix Ruby Exception Handling Anti-Patterns

Task: Fix Ruby Exception Handling Anti-Patterns: a task in Terminal-Lego-15k (Harbor dataset). In Ruby, there is an important distinction between rescuing Exception and rescuing StandardError . Rescuing Exception is considered a dangerous anti-pattern because Exception is the root of Ruby's entire…

The task

In Ruby, there is an important distinction between rescuing `Exception` and rescuing `StandardError`. Rescuing `Exception` is considered a dangerous anti-pattern because `Exception` is the root of Ruby's entire exception hierarchy, which includes critical system exceptions like `SignalException` (Ctrl+C /…

Part of PrimeIntellect/Terminal-Lego-15k.