首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::filesystem::filesystem_error

Defined in header <filesystem>

?

?

class filesystem_error;

?

(since C++17)

全班std::filesystem::filesystem_error定义一个异常对象,该异常对象在文件系统库中抛出函数的重载失败时抛出。

成员函数

(constructor)

constructs the error object (public member function)

path1path2

returns the paths that were involved in the operation that caused the error (public member function)

what

returns the explanatory string (public member function)

继承自STD:系统[医]误差

成员函数

code

returns error code (public member function of std::system_error)

what virtual

returns explanatory string (virtual public member function of std::system_error)

继承自STD::运行时[医]误差

继承自STD:例外

成员函数

(destructor) virtual

destructs the exception object (virtual public member function of std::exception)

what virtual

returns an explanatory string (virtual public member function of std::exception)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com