Share via


basic_filesystem_error::basic_filesystem_error Constructor

Constructs a basic_filesystem_error object.

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
);

Parameters

  • Message
    A string that contains an error message.

  • Errcode
    An error_code.

  • Pval1
    An object of template type Path. Path can be either a basic_path or a type that is derived from basic_path.

  • Pval2
    A Path object.

  • Right
    A basic_filesystem_error object.

Remarks

The first constructor constructs its message from Message and Errcode.

The second constructor also uses the Path object that is stored in Pval1.

The third constructor also uses the Path object that is stored in Pval2.

The fourth constructor is a move constructor.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_filesystem_error Class

<filesystem>