我试图使用一个类来抛出异常,但异常虽然必须抛出一个值.我如何创建类,以便在抛出异常时它携带一个值到处理程序?
c++ arguments exception-handling throw
arguments ×1
c++ ×1
exception-handling ×1
throw ×1