It is a future error exception and this class defines the type of objects thrown as exceptions to report invalid operations on future objects or other elements of the library that may access a future's shared state.
Following is the declaration for std::future_error.
No-throw guarantee − no members throw exceptions.
constructor − what_arg has the same content as the value returned by member what.
what − It is used to get string identifying exception.