◐ Shell
clean mode source ↗

std::errc - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<system_error>

enum class errc;

(dal C++11)

Il std::errc enumerazione ambito definisce i valori di condizioni di errore portatili che corrispondono ai codici di errore POSIX.

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.

Membri costanti

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

condizione di errore corrispondente al codice EAFNOSUPPORT POSIX

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

condizione di errore corrispondente al codice EADDRINUSE POSIX

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

condizione di errore corrispondente al codice EADDRNOTAVAIL POSIX

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

condizione di errore corrispondente al codice EISCONN POSIX

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

condizione di errore corrispondente al codice E2BIG POSIX

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

condizione di errore corrispondente al codice EDOM POSIX

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

condizione di errore corrispondente al codice EFAULT POSIX

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

condizione di errore corrispondente al codice EBADF POSIX

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

condizione di errore corrispondente al codice EBADMSG POSIX

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

condizione di errore corrispondente al codice EPIPE POSIX

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

condizione di errore corrispondente al codice ECONNABORTED POSIX

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

condizione di errore corrispondente al codice EALREADY POSIX

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

condizione di errore corrispondente al codice ECONNREFUSED POSIX

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

condizione di errore corrispondente al codice ECONNRESET POSIX

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

condizione di errore corrispondente al codice EXDEV POSIX

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

condizione di errore corrispondente al codice EDESTADDRREQ POSIX

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

condizione di errore corrispondente al codice EBUSY POSIX

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

condizione di errore corrispondente al codice ENOTEMPTY POSIX

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

condizione di errore corrispondente al codice ENOEXEC POSIX

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

condizione di errore corrispondente al codice EEXIST POSIX

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

condizione di errore corrispondente al codice EFBIG POSIX

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

condizione di errore corrispondente al codice ENAMETOOLONG POSIX

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

condizione di errore corrispondente a POSIX ENOSYS codice

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

condizione di errore corrispondente al codice EHOSTUNREACH POSIX

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

condizione di errore corrispondente al codice EIDRM POSIX

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

condizione di errore corrispondente al codice EILSEQ POSIX

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

condizione di errore corrispondente al codice ENOTTY POSIX

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

condizione di errore corrispondente al codice EINTR POSIX

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

condizione di errore corrispondente al codice EINVAL POSIX

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

condizione di errore corrispondente al codice ESPIPE POSIX

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

condizione di errore corrispondente al codice POSIX 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

condizione di errore corrispondente al codice EISDIR POSIX

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

condizione di errore corrispondente al codice EMSGSIZE POSIX

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

condizione di errore corrispondente al codice ENETDOWN POSIX

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

condizione di errore corrispondente al codice ENETRESET POSIX

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

condizione di errore corrispondente al codice ENETUNREACH POSIX

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

condizione di errore corrispondente a POSIX ENOBUFS codice

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

condizione di errore corrispondente al codice ECHILD POSIX

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

condizione di errore corrispondente al codice ENOLINK POSIX

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

condizione di errore corrispondente al codice ENOLCK POSIX

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

condizione di errore corrispondente al codice ENODATA POSIX

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

condizione di errore corrispondente al codice ENOMSG POSIX

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

condizione di errore corrispondente al codice ENOPROTOOPT POSIX

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

condizione di errore corrispondente al codice ENOSPC POSIX

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

condizione di errore corrispondente al codice ENOSR POSIX

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

condizione di errore corrispondente al codice ENXIO POSIX

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

condizione di errore corrispondente al codice ENODEV POSIX

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

condizione di errore corrispondente al codice ENOENT POSIX

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

condizione di errore corrispondente al codice ESRCH POSIX

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

condizione di errore corrispondente al codice ENOTDIR POSIX

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

condizione di errore corrispondente al codice ENOTSOCK POSIX

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

condizione di errore corrispondente al codice ENOSTR POSIX

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

condizione di errore corrispondente al codice ENOTCONN POSIX

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

condizione di errore corrispondente al codice ENOMEM POSIX

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

condizione di errore corrispondente al codice ENOTSUP POSIX

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

condizione di errore corrispondente al codice ECANCELED POSIX

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

condizione di errore corrispondente al codice EINPROGRESS POSIX

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

condizione di errore corrispondente al codice EPERM POSIX

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

condizione di errore corrispondente al codice EOPNOTSUPP POSIX

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

condizione di errore corrispondente al codice EWOULDBLOCK POSIX

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

condizione di errore corrispondente al codice EOWNERDEAD POSIX

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

condizione di errore corrispondente a POSIX EACCES codice

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

condizione di errore corrispondente al codice EPROTO POSIX

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

condizione di errore corrispondente al codice EPROTONOSUPPORT POSIX

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

condizione di errore corrispondente a POSIX EROFS codice

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

condizione di errore corrispondente al codice EDEADLK POSIX

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

condizione di errore corrispondente al codice EAGAIN POSIX

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

condizione di errore corrispondente al codice ERANGE POSIX

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

condizione di errore corrispondente al codice POSIX 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

condizione di errore corrispondente al codice Etime POSIX

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

condizione di errore corrispondente al codice ETXTBSY POSIX

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

condizione di errore corrispondente al codice ETIMEDOUT POSIX

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

condizione di errore corrispondente al codice ENFILE POSIX

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

condizione di errore corrispondente al codice EMFILE POSIX

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

condizione di errore corrispondente al codice EMLINK POSIX

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

condizione di errore corrispondente al codice ELOOP POSIX

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

condizione di errore corrispondente al codice EOVERFLOW POSIX

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

condizione di errore corrispondente al codice EPROTOTYPE POSIX

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 classi

estende il tratto std::is_error_condition_enum tipo per identificare i valori del std::errc come condizioni di errore

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.


(funzione di modello)

Non membri funzioni

costruisce un codice di errore std::errc

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.


(funzione)

costruisce una condizione di errore std::errc

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.


(funzione)

Esempio

#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

Vedi anche

in possesso di un dipendente dalla piattaforma codice di errore

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.


(classe) [modifica]

contiene un codice di errore portatile

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.


(classe) [modifica]