[RuboCop] Shorten class definition and rename rescue error variable