异常处理中的 throw 语句用于抛出异常,rethrow 语句用于在捕获的异常中再次抛出相同的异常。throw 语句的语法为:throw exception_object; rethrow 语句的语法为:rethrow; throw 和 rethrow 语句仅在需要向调用者报告错误时使用,且异常信