rethrow
-
C++ 函数异常处理中的 throw 和 rethrow 语句的作用是什么?
异常处理中的 throw 语句用于抛出异常,rethrow 语句用于在捕获的异常中再次抛出相同的异常。throw 语句的语法为:throw exception_object; rethrow 语句的语法为:rethrow; throw 和 …
异常处理中的 throw 语句用于抛出异常,rethrow 语句用于在捕获的异常中再次抛出相同的异常。throw 语句的语法为:throw exception_object; rethrow 语句的语法为:rethrow; throw 和 …