basic_filesystem_error::basic_filesystem_error构造函数

构造 basic_filesystem_error 对象。

explicit basic_filesystem_error(
   const string& Message,
   error_code Errcode = error_code()
);
basic_filesystem_error(
   const string& Message,
   const path_type Pval1,
   error_code Errcode
);
basic_filesystem_error(
   const string& Message,
   const path_type Pval1,
   const path_type Pval2,
   error_code Errcode
);
basic_filesystem_error(
   basic_filesystem_error&& Right
);

参数

  • Message
    包含错误消息的 string。

  • Errcode
    error_code

  • Pval1
    模板类型 Path对象。Path 可以是 basic_path 或从 basic_path派生类型。

  • Pval2
    Path 对象。

  • Right
    basic_filesystem_error 对象。

备注

第一个构造函数构造其从 Message 和 Errcode的消息。

第二个构造函数还使用在 Pval1存储的 Path 对象。

第三个构造函数还使用在 Pval2存储的 Path 对象。

第四个构造函数是 移动构造函数

要求

标头: 文件系统

命名空间: std::tr2::sys

请参见

参考

basic_filesystem_error选件类

<filesystem>