Thursday, January 24, 2013

Ruby - Catch or rescue multiple exceptions on the same line.

begin
    ...
rescue ExceptionType1, ExceptionType2 => e
    ...
end

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.