Exception类是为异常捕获而设计,可以获得异常的信息以及栈的回溯信息 (原来的代码没有demangle成员函数,输出的格式比较难看,加了demangle成员函数,利用demangle成员函数可以转换格式,使得输出的格式更加接近我们的习惯) 以下的代码是加入了demangle成员函数后的: Exception.h // Use of this source code is governed by a BSD-style license // that can be found in the…