阅读背景:

如何在ruby中显示错误类型?

来源:互联网 

in the following code

在以下代码中

begin
 raise StandardError, 'message'
 #some code that raises a lot of exception
rescue StandardError
 #handle error
rescue OtherError
 #handle error
rescue YetAnotherError
 #handle error
end
begin
 raise S



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: