class invalid_access_mode


class invalid_access_mode
    : public std::exception

Description

This exception type indicates that an IO operation was attempted under the wrong access mode. For example, trying to write to a file that was opened as read-only.

Public Member Functions

invalid_access_mode ()
noexcept

Constructs an invalid_access_mode.

invalid_access_mode (
    const invalid_access_mode& other
)

Copy-constructs an invalid_access_mode from an existing one.

Parameters:
  • other:

    The invalid_access_mode to copy from.

invalid_access_mode&
operator = (
    const invalid_access_mode& other
)

Copy-assigns an invalid_access_mode into this one.

Parameters:
  • other:

    The invalid_access_mode to copy from.

invalid_access_mode (
    invalid_access_mode&& other
)
noexcept

Move-constructs an invalid_access_mode from an existing one.

Parameters:
  • other:

    The invalid_access_mode to move from.

invalid_access_mode&
operator = (
    invalid_access_mode&& other
)
noexcept

Move-assigns an invalid_access_mode into this one.

Parameters:
  • other:

    The invalid_access_mode to move from.

const char*
what ()
const noexcept override

Returns the explanatory string.



Copyright © 2022-2025 Daniel T. McGinnis

CCL was first published in 2022, and is still actively maintained.

This website was first published in 2022, and is still actively maintained.

This specific web page was first published in 2023.