方法抛出异常

异常处理

# 任何方法都可能抛出错误
def method_with_exception()
    raise "test exception"
end

method_with_exception() # <-Error