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 物件。
第四個建構函式是 移動建構函式。
需求
標題: filesystem
命名空間: std::tr2::sys