System::ExceptionWrapper 类
ExceptionWrapper class
模板,表示从 Exception 类派生的异常的包装器。
template<typename T>class ExceptionWrapper
方法
| 方法 | 描述 |
|---|---|
| ExceptionWrapper(std::nullptr_t) | 构造一个不代表任何异常的 ExceptionWrapper 类的空实例。 |
| ExceptionWrapper(const ExceptionPtr&) | 构造一个包含传入指针的 ExceptionWrapper 类实例。 |
| ExceptionWrapper(const ExceptionWrapper&) | 拷贝构造函数。 |
| ExceptionWrapper(ExceptionWrapper&&) | 移动构造函数。 |
| explicit ExceptionWrapper(Args&&…) | 构造函数,将参数转发给 Exception 类的构造函数,并创建持有新 Exception 类实例的智能指针。 |
| static operator new(std::size_t) | |
| static operator new[](std::size_t) | |
| operator SharedPtr< Object >() | 隐式转换运算符,转换为 SharedPtr。 |
| operator->() const | 允许访问 Exception 对象的成员。 |
| operator=(const ExceptionWrapper&) | 赋值运算符。 |
| operator=(ExceptionWrapper&&) | 移动赋值运算符。 |
| static Type() | 获取 Exception 类型的 System::TypeInfo 对象的快捷方式。 |
Typedefs
| 类型定义 | 描述 |
|---|---|
| ExceptionType | 用于类型转换函数。 |
另见
- Namespace System
- Library Aspose.Font for C++