◐ Shell
clean mode source ↗

std::errc – cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<system_error>

enum class errc;

(seit C++11)

Der Gültigkeitsbereich Aufzählung std::errc definiert die Werte von tragbaren Fehlerbedingungen, die zu den POSIX-Fehler-Codes entsprechen .

Original:

The scoped enumeration std::errc defines the values of portable error conditions that correspond to the POSIX error codes.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Mitglied Konstanten

Constant

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Explanation
address_family_not_supported

Fehlerbedingung entspricht POSIX-Code EAFNOSUPPORT

Original:

error condition corresponding to POSIX code EAFNOSUPPORT

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

address_in_use

Fehlerbedingung entspricht POSIX-Code EADDRINUSE

Original:

error condition corresponding to POSIX code EADDRINUSE

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

address_not_available

Fehlerbedingung entspricht POSIX-Code EADDRNOTAVAIL

Original:

error condition corresponding to POSIX code EADDRNOTAVAIL

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

already_connected

Fehlerbedingung entspricht POSIX-Code EISCONN

Original:

error condition corresponding to POSIX code EISCONN

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

argument_list_too_long

Fehlerbedingung entspricht POSIX-Code E2BIG

Original:

error condition corresponding to POSIX code E2BIG

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

argument_out_of_domain

Fehlerbedingung entspricht POSIX-Code EDOM

Original:

error condition corresponding to POSIX code EDOM

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

bad_address

Fehlerbedingung entspricht POSIX-Code EFAULT

Original:

error condition corresponding to POSIX code EFAULT

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

bad_file_descriptor

Fehlerbedingung entspricht POSIX-Code EBADF

Original:

error condition corresponding to POSIX code EBADF

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

bad_message

Fehlerbedingung entspricht POSIX-Code EBADMSG

Original:

error condition corresponding to POSIX code EBADMSG

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

broken_pipe

Fehlerbedingung entspricht POSIX-Code EPIPE

Original:

error condition corresponding to POSIX code EPIPE

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

connection_aborted

Fehlerbedingung entspricht POSIX-Code ECONNABORTED

Original:

error condition corresponding to POSIX code ECONNABORTED

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

connection_already_in_progress

Fehlerbedingung entspricht POSIX-Code EALREADY

Original:

error condition corresponding to POSIX code EALREADY

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

connection_refused

Fehlerbedingung entspricht POSIX-Code ECONNREFUSED

Original:

error condition corresponding to POSIX code ECONNREFUSED

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

connection_reset

Fehlerbedingung entspricht POSIX-Code ECONNRESET

Original:

error condition corresponding to POSIX code ECONNRESET

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

cross_device_link

Fehlerbedingung entspricht POSIX-Code EXDEV

Original:

error condition corresponding to POSIX code EXDEV

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

destination_address_required

Fehlerbedingung entspricht POSIX-Code EDESTADDRREQ

Original:

error condition corresponding to POSIX code EDESTADDRREQ

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

device_or_resource_busy

Fehlerbedingung entspricht POSIX-Code EBUSY

Original:

error condition corresponding to POSIX code EBUSY

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

directory_not_empty

Fehlerbedingung entspricht POSIX-Code ENOTEMPTY

Original:

error condition corresponding to POSIX code ENOTEMPTY

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

executable_format_error

Fehlerbedingung entspricht POSIX-Code ENOEXEC

Original:

error condition corresponding to POSIX code ENOEXEC

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

file_exists

Fehlerbedingung entspricht POSIX-Code EEXIST

Original:

error condition corresponding to POSIX code EEXIST

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

file_too_large

Fehlerbedingung entspricht POSIX-Code EFBIG

Original:

error condition corresponding to POSIX code EFBIG

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

filename_too_long

Fehlerbedingung entspricht POSIX-Code ENAMETOOLONG

Original:

error condition corresponding to POSIX code ENAMETOOLONG

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

function_not_supported

Fehlerbedingung entspricht POSIX-Code ENOSYS

Original:

error condition corresponding to POSIX code ENOSYS

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

host_unreachable

Fehlerbedingung entspricht POSIX-Code EHOSTUNREACH

Original:

error condition corresponding to POSIX code EHOSTUNREACH

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

identifier_removed

Fehlerbedingung entspricht POSIX-Code EIDRM

Original:

error condition corresponding to POSIX code EIDRM

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

illegal_byte_sequence

Fehlerbedingung entspricht POSIX-Code EILSEQ

Original:

error condition corresponding to POSIX code EILSEQ

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

inappropriate_io_control_operation

Fehlerbedingung entspricht POSIX-Code ENOTTY

Original:

error condition corresponding to POSIX code ENOTTY

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

interrupted

Fehlerbedingung entspricht POSIX-Code EINTR

Original:

error condition corresponding to POSIX code EINTR

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

invalid_argument

Fehlerbedingung entspricht POSIX-Code EINVAL

Original:

error condition corresponding to POSIX code EINVAL

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

invalid_seek

Fehlerbedingung entspricht POSIX-Code ESPIPE

Original:

error condition corresponding to POSIX code ESPIPE

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

io_error

Fehlerbedingung entspricht POSIX-Code EIO

Original:

error condition corresponding to POSIX code EIO

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

is_a_directory

Fehlerbedingung entspricht POSIX-Code EISDIR

Original:

error condition corresponding to POSIX code EISDIR

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

message_size

Fehlerbedingung entspricht POSIX-Code EMSGSIZE

Original:

error condition corresponding to POSIX code EMSGSIZE

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

network_down

Fehlerbedingung entspricht POSIX-Code ENETDOWN

Original:

error condition corresponding to POSIX code ENETDOWN

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

network_reset

Fehlerbedingung entspricht POSIX-Code ENETRESET

Original:

error condition corresponding to POSIX code ENETRESET

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

network_unreachable

Fehlerbedingung entspricht POSIX-Code ENETUNREACH

Original:

error condition corresponding to POSIX code ENETUNREACH

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_buffer_space

Fehlerbedingung entspricht POSIX-Code ENOBUFS

Original:

error condition corresponding to POSIX code ENOBUFS

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_child_process

Fehlerbedingung entspricht POSIX-Code ECHILD

Original:

error condition corresponding to POSIX code ECHILD

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_link

Fehlerbedingung entspricht POSIX-Code ENOLINK

Original:

error condition corresponding to POSIX code ENOLINK

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_lock_available

Fehlerbedingung entspricht POSIX-Code ENOLCK

Original:

error condition corresponding to POSIX code ENOLCK

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_message_available

Fehlerbedingung entspricht POSIX-Code ENODATA

Original:

error condition corresponding to POSIX code ENODATA

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_message

Fehlerbedingung entspricht POSIX-Code ENOMSG

Original:

error condition corresponding to POSIX code ENOMSG

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_protocol_option

Fehlerbedingung entspricht POSIX-Code ENOPROTOOPT

Original:

error condition corresponding to POSIX code ENOPROTOOPT

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_space_on_device

Fehlerbedingung entspricht POSIX-Code ENOSPC

Original:

error condition corresponding to POSIX code ENOSPC

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_stream_resources

Fehlerbedingung entspricht POSIX-Code ENOSR

Original:

error condition corresponding to POSIX code ENOSR

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_such_device_or_address

Fehlerbedingung entspricht POSIX-Code ENXIO

Original:

error condition corresponding to POSIX code ENXIO

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_such_device

Fehlerbedingung entspricht POSIX-Code ENODEV

Original:

error condition corresponding to POSIX code ENODEV

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_such_file_or_directory

Fehlerbedingung entspricht POSIX-Code ENOENT

Original:

error condition corresponding to POSIX code ENOENT

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

no_such_process

Fehlerbedingung entspricht POSIX-Code ESRCH

Original:

error condition corresponding to POSIX code ESRCH

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

not_a_directory

Fehlerbedingung entspricht POSIX-Code ENOTDIR

Original:

error condition corresponding to POSIX code ENOTDIR

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

not_a_socket

Fehlerbedingung entspricht POSIX-Code ENOTSOCK

Original:

error condition corresponding to POSIX code ENOTSOCK

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

not_a_stream

Fehlerbedingung entspricht POSIX-Code ENOSTR

Original:

error condition corresponding to POSIX code ENOSTR

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

not_connected

Fehlerbedingung entspricht POSIX-Code ENOTCONN

Original:

error condition corresponding to POSIX code ENOTCONN

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

not_enough_memory

Fehlerbedingung entspricht POSIX-Code ENOMEM

Original:

error condition corresponding to POSIX code ENOMEM

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

not_supported

Fehlerbedingung entspricht POSIX-Code ENOTSUP

Original:

error condition corresponding to POSIX code ENOTSUP

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

operation_canceled

Fehlerbedingung entspricht POSIX-Code ECANCELED

Original:

error condition corresponding to POSIX code ECANCELED

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

operation_in_progress

Fehlerbedingung entspricht POSIX-Code EINPROGRESS

Original:

error condition corresponding to POSIX code EINPROGRESS

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

operation_not_permitted

Fehlerbedingung entspricht POSIX-Code EPERM

Original:

error condition corresponding to POSIX code EPERM

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

operation_not_supported

Fehlerbedingung entspricht POSIX-Code EOPNOTSUPP

Original:

error condition corresponding to POSIX code EOPNOTSUPP

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

operation_would_block

Fehlerbedingung entspricht POSIX-Code EWOULDBLOCK

Original:

error condition corresponding to POSIX code EWOULDBLOCK

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

owner_dead

Fehlerbedingung entspricht POSIX-Code EOWNERDEAD

Original:

error condition corresponding to POSIX code EOWNERDEAD

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

permission_denied

Fehlerbedingung entspricht POSIX-Code EACCES

Original:

error condition corresponding to POSIX code EACCES

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

protocol_error

Fehlerbedingung entspricht POSIX-Code EPROTO

Original:

error condition corresponding to POSIX code EPROTO

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

protocol_not_supported

Fehlerbedingung entspricht POSIX-Code EPROTONOSUPPORT

Original:

error condition corresponding to POSIX code EPROTONOSUPPORT

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

read_only_file_system

Fehlerbedingung entspricht POSIX-Code EROFS

Original:

error condition corresponding to POSIX code EROFS

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

resource_deadlock_would_occur

Fehlerbedingung entspricht POSIX-Code EDEADLK

Original:

error condition corresponding to POSIX code EDEADLK

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

resource_unavailable_try_again

Fehlerbedingung entspricht POSIX-Code EAGAIN

Original:

error condition corresponding to POSIX code EAGAIN

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

result_out_of_range

Fehlerbedingung entspricht POSIX-Code ERANGE

Original:

error condition corresponding to POSIX code ERANGE

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

state_not_recoverable

Fehlerbedingung entspricht POSIX-Code ENOTRECOVERABLE

Original:

error condition corresponding to POSIX code ENOTRECOVERABLE

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

stream_timeout

Fehlerbedingung entspricht POSIX-Code eTime

Original:

error condition corresponding to POSIX code ETIME

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

text_file_busy

Fehlerbedingung entspricht POSIX-Code ETXTBSY

Original:

error condition corresponding to POSIX code ETXTBSY

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

timed_out

Fehlerbedingung entspricht POSIX-Code ETIMEDOUT

Original:

error condition corresponding to POSIX code ETIMEDOUT

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

too_many_files_open_in_system

Fehlerbedingung entspricht POSIX-Code ENFILE

Original:

error condition corresponding to POSIX code ENFILE

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

too_many_files_open

Fehlerbedingung entspricht POSIX-Code EMFILE

Original:

error condition corresponding to POSIX code EMFILE

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

too_many_links

Fehlerbedingung entspricht POSIX-Code EMLINK

Original:

error condition corresponding to POSIX code EMLINK

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

too_many_symbolic_link_levels

Fehlerbedingung entspricht POSIX-Code ELOOP

Original:

error condition corresponding to POSIX code ELOOP

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

value_too_large

Fehlerbedingung entspricht POSIX-Code EOVERFLOW

Original:

error condition corresponding to POSIX code EOVERFLOW

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

wrong_protocol_type

Fehlerbedingung entspricht POSIX-Code EPROTOTYPE

Original:

error condition corresponding to POSIX code EPROTOTYPE

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Helper-Klassen

erweitert den Typ-Trait std::is_error_condition_enum die die std::errc Werte als Fehlerbedingungen zu identifizieren

Original:

extends the type trait std::is_error_condition_enum to identify the the std::errc values as error conditions

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(Funktions-Template)

Non-Member-Funktionen

konstruiert eine std::errc Fehlercode

Original:

constructs an std::errc error code

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(Funktion)

konstruiert eine std::errc Fehler

Original:

constructs an std::errc error condition

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(Funktion)

Beispiel

#include <iostream>
#include <system_error>
#include <thread>
int main()
{
    try {
        std::thread().detach(); // detaching a not-a-thread
    } catch (const std::system_error& e) {
        std::cout << "Caught a system_error\n";
        if(e.code() == std::errc::invalid_argument)
            std::cout << "The error condition is std::errc::invalid_argument\n";
        std::cout << "the error description is " << e.what() << '\n';
    }
}

Output:

Caught a system_error
The error condition is std::errc::invalid_argument
the error description is Invalid argument

Siehe auch

hält einen plattformabhängigen Fehlercode

Original:

holds a platform-dependent error code

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(Klasse) [edit]

hält einen tragbaren Fehlercode

Original:

holds a portable error code

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(Klasse) [edit]