1

I am dealing with an exception with this message. It is not a StandardError.

I caught it by catching the Exception class, but a post tells it is a bad solution. How do I determine what exception to catch?

Community
  • 1
  • 1

1 Answers1

1

Temporary add to your code

rescue Exception => e
   puts e.class
end

And you will know what exception to catch

Sergey Mell
  • 7,780
  • 1
  • 26
  • 50