Retrieves the current error state.
error_code error_state() const noexcept;
error_code
No-throw guarantee.