---
name: "std::experimental::filesystem::filesystem_error"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::experimental::filesystem::filesystem_error"
---

# std::experimental::filesystem::filesystem\_error(3)

Exception type thrown by the Filesystem TS library.

## NAME

std::experimental::filesystem::filesystem\_error - Exception type thrown by the Filesystem TS library.

## SYNOPSIS

\#include \<filesystem\>

Inherits **std::system\_error**.

### Public Member Functions

**filesystem\_error** (const **string** &\_\_what\_arg, const **path** &\_\_p1, const **path** &\_\_p2, **error\_code** \_\_ec)\
 **filesystem\_error** (const **string** &\_\_what\_arg, const **path** &\_\_p1, **error\_code** \_\_ec)\
 **filesystem\_error** (const **string** &\_\_what\_arg, **error\_code** \_\_ec)\
 const **error\_code** & **code** () const noexcept\
 const **path** & **path1** () const noexcept\
 const **path** & **path2** () const noexcept\
 const char \* **what** () const noexcept\

## Detailed Description

Exception type thrown by the Filesystem TS library.

## Member Function Documentation

### const char \* std::experimental::filesystem::filesystem\_error::what () const \[inline\], \[virtual\], \[noexcept\]

Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).

Reimplemented from **std::runtime\_error**.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
