X
Xiangrong Fang
Hi,
I had a question about exception in ruby.
In the following code:
begin
# do something
rescue
# error caught
end
The exception is NOT caught, but if I write:
begin
# do something
rescue Exception
# error caught
end
Error is caught. Could any one tell me if I ommit the Exception after
rescue, what is it trying to rescue?
Thanks a lot.
I had a question about exception in ruby.
In the following code:
begin
# do something
rescue
# error caught
end
The exception is NOT caught, but if I write:
begin
# do something
rescue Exception
# error caught
end
Error is caught. Could any one tell me if I ommit the Exception after
rescue, what is it trying to rescue?
Thanks a lot.