【发布时间】:2015-08-10 07:56:51
【问题描述】:
是否可以在 begin 循环和/或函数中添加多个救援,并且每个救援仍然有下一个?
例如:
begin twitter_function
rescue Twitter::Error::RateLimit => error
next
rescue Twitter::Error::Unauthorized => error
next
end
【问题讨论】:
-
@HunterMcMillen 现在就试试,只是要让错误发生...
标签: ruby loops twitter error-handling rescue