【发布时间】:2013-02-09 09:16:17
【问题描述】:
为什么 Ruby 被设计为仅由 rescue 隐式处理 StandardError 异常?对于其他异常,我们为什么要明确地用rescue 写出来?
begin
#codes here which may generates exceptions
rescue
#codes to handle some thing which really needed to be done when exceptions there
end
谁能帮我理解它的核心?
【问题讨论】: