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?
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?
Temporary add to your code
rescue Exception => e
puts e.class
end
And you will know what exception to catch