public member function
<system_error>

std::system_error::code

const error_code& code() const noexcept;
Get error code
Returns the error_code object associated with the exception.

This value is either the error_code passed to the construction or its equivalent (if constructed with a value and a category).

Parameters

none

Return value

The error_code associated with the object.

See also