public member function
<system_error>
std::system_error::code
const error_code& code() const noexcept;
Get error code
This value is either the error_code passed to the construction or its equivalent (if constructed with a value and a category).
Parameters
noneReturn value
The error_code associated with the object.See also
- system_error::system_error
- Construct system_error (public member function)