STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Typedefs | Enumerations | Functions
system_error File Reference
#include <cerrno>
#include <cstdlib>
#include <stdexcept>

Classes

struct  is_error_code_enum< _Enum >
 
struct  is_error_code_enum< _Io_errc >
 
struct  is_error_condition_enum< _Enum >
 
struct  is_error_condition_enum< generic_errno >
 
class  error_category
 
class  error_code
 
class  error_condition
 
struct  hash< error_code >
 
class  _System_error
 
class  system_error
 
class  _Generic_error_category
 
class  _Iostream_error_category
 
class  _System_error_category
 
struct  _Error_objects< _Cat >
 

Macros

#define _SYSTEM_ERROR_
 

Typedefs

typedef errc generic_errno
 
typedef io_errc _Io_errc
 

Enumerations

enum  errc {
  errc::address_family_not_supported = EAFNOSUPPORT, errc::address_in_use = EADDRINUSE, errc::address_not_available = EADDRNOTAVAIL, errc::already_connected = EISCONN,
  errc::argument_list_too_long = E2BIG, errc::argument_out_of_domain = EDOM, errc::bad_address = EFAULT, errc::bad_file_descriptor = EBADF,
  errc::bad_message = EBADMSG, errc::broken_pipe = EPIPE, errc::connection_aborted = ECONNABORTED, errc::connection_already_in_progress = EALREADY,
  errc::connection_refused = ECONNREFUSED, errc::connection_reset = ECONNRESET, errc::cross_device_link = EXDEV, errc::destination_address_required = EDESTADDRREQ,
  errc::device_or_resource_busy = EBUSY, errc::directory_not_empty = ENOTEMPTY, errc::executable_format_error = ENOEXEC, errc::file_exists = EEXIST,
  errc::file_too_large = EFBIG, errc::filename_too_long = ENAMETOOLONG, errc::function_not_supported = ENOSYS, errc::host_unreachable = EHOSTUNREACH,
  errc::identifier_removed = EIDRM, errc::illegal_byte_sequence = EILSEQ, errc::inappropriate_io_control_operation = ENOTTY, errc::interrupted = EINTR,
  errc::invalid_argument = EINVAL, errc::invalid_seek = ESPIPE, errc::io_error = EIO, errc::is_a_directory = EISDIR,
  errc::message_size = EMSGSIZE, errc::network_down = ENETDOWN, errc::network_reset = ENETRESET, errc::network_unreachable = ENETUNREACH,
  errc::no_buffer_space = ENOBUFS, errc::no_child_process = ECHILD, errc::no_link = ENOLINK, errc::no_lock_available = ENOLCK,
  errc::no_message_available = ENODATA, errc::no_message = ENOMSG, errc::no_protocol_option = ENOPROTOOPT, errc::no_space_on_device = ENOSPC,
  errc::no_stream_resources = ENOSR, errc::no_such_device_or_address = ENXIO, errc::no_such_device = ENODEV, errc::no_such_file_or_directory = ENOENT,
  errc::no_such_process = ESRCH, errc::not_a_directory = ENOTDIR, errc::not_a_socket = ENOTSOCK, errc::not_a_stream = ENOSTR,
  errc::not_connected = ENOTCONN, errc::not_enough_memory = ENOMEM, errc::not_supported = ENOTSUP, errc::operation_canceled = ECANCELED,
  errc::operation_in_progress = EINPROGRESS, errc::operation_not_permitted = EPERM, errc::operation_not_supported = EOPNOTSUPP, errc::operation_would_block = EWOULDBLOCK,
  errc::owner_dead = EOWNERDEAD, errc::permission_denied = EACCES, errc::protocol_error = EPROTO, errc::protocol_not_supported = EPROTONOSUPPORT,
  errc::read_only_file_system = EROFS, errc::resource_deadlock_would_occur = EDEADLK, errc::resource_unavailable_try_again = EAGAIN, errc::result_out_of_range = ERANGE,
  errc::state_not_recoverable = ENOTRECOVERABLE, errc::stream_timeout = ETIME, errc::text_file_busy = ETXTBSY, errc::timed_out = ETIMEDOUT,
  errc::too_many_files_open_in_system = ENFILE, errc::too_many_files_open = EMFILE, errc::too_many_links = EMLINK, errc::too_many_symbolic_link_levels = ELOOP,
  errc::value_too_large = EOVERFLOW, errc::wrong_protocol_type = EPROTOTYPE
}
 
enum  io_errc { io_errc::stream = 1 }
 

Functions

error_code make_error_code (generic_errno) _NOEXCEPT
 
error_code make_error_code (_Io_errc) _NOEXCEPT
 
error_condition make_error_condition (generic_errno) _NOEXCEPT
 
error_condition make_error_condition (_Io_errc) _NOEXCEPT
 
const error_categorygeneric_category () _NOEXCEPT
 
const error_categoryiostream_category () _NOEXCEPT
 
const error_categorysystem_category () _NOEXCEPT
 
bool operator== (const error_code &_Left, const error_condition &_Right) _NOEXCEPT
 
bool operator== (const error_condition &_Left, const error_code &_Right) _NOEXCEPT
 
bool operator!= (const error_code &_Left, const error_condition &_Right) _NOEXCEPT
 
bool operator!= (const error_condition &_Left, const error_code &_Right) _NOEXCEPT
 
_CRTIMP2_PURE const char *__CLRCALL_PURE_OR_CDECL _Syserror_map (int)
 
_CRTIMP2_PURE const char *__CLRCALL_PURE_OR_CDECL _Winerror_map (int)
 

Macro Definition Documentation

#define _SYSTEM_ERROR_

Typedef Documentation

typedef io_errc _Io_errc

Enumeration Type Documentation

enum errc
strong
Enumerator
address_family_not_supported 
address_in_use 
address_not_available 
already_connected 
argument_list_too_long 
argument_out_of_domain 
bad_address 
bad_file_descriptor 
bad_message 
broken_pipe 
connection_aborted 
connection_already_in_progress 
connection_refused 
connection_reset 
cross_device_link 
destination_address_required 
device_or_resource_busy 
directory_not_empty 
executable_format_error 
file_exists 
file_too_large 
filename_too_long 
function_not_supported 
host_unreachable 
identifier_removed 
illegal_byte_sequence 
inappropriate_io_control_operation 
interrupted 
invalid_argument 
invalid_seek 
io_error 
is_a_directory 
message_size 
network_down 
network_reset 
network_unreachable 
no_buffer_space 
no_child_process 
no_link 
no_lock_available 
no_message_available 
no_message 
no_protocol_option 
no_space_on_device 
no_stream_resources 
no_such_device_or_address 
no_such_device 
no_such_file_or_directory 
no_such_process 
not_a_directory 
not_a_socket 
not_a_stream 
not_connected 
not_enough_memory 
not_supported 
operation_canceled 
operation_in_progress 
operation_not_permitted 
operation_not_supported 
operation_would_block 
owner_dead 
permission_denied 
protocol_error 
protocol_not_supported 
read_only_file_system 
resource_deadlock_would_occur 
resource_unavailable_try_again 
result_out_of_range 
state_not_recoverable 
stream_timeout 
text_file_busy 
timed_out 
too_many_files_open_in_system 
too_many_files_open 
too_many_links 
too_many_symbolic_link_levels 
value_too_large 
wrong_protocol_type 
20  { // names for generic error codes
51  io_error = EIO,
59  no_link = ENOLINK,
99  };
#define EALREADY
Definition: errno.h:95
#define ENOEXEC
Definition: errno.h:47
#define ENODATA
Definition: errno.h:112
#define ECONNREFUSED
Definition: errno.h:99
#define ENETRESET
Definition: errno.h:109
#define ENOTEMPTY
Definition: errno.h:74
#define EINVAL
Definition: errno.h:81
#define EPROTO
Definition: errno.h:126
#define ENOTDIR
Definition: errno.h:58
#define ENETUNREACH
Definition: errno.h:110
#define ECONNABORTED
Definition: errno.h:98
#define ELOOP
Definition: errno.h:106
#define ENOMEM
Definition: errno.h:51
#define EPROTONOSUPPORT
Definition: errno.h:127
#define EACCES
Definition: errno.h:52
#define EPROTOTYPE
Definition: errno.h:128
#define ENOTRECOVERABLE
Definition: errno.h:119
#define EIDRM
Definition: errno.h:103
#define EFAULT
Definition: errno.h:53
#define ENETDOWN
Definition: errno.h:108
#define EDESTADDRREQ
Definition: errno.h:101
#define EEXIST
Definition: errno.h:55
#define ECHILD
Definition: errno.h:49
#define ENAMETOOLONG
Definition: errno.h:71
#define EAFNOSUPPORT
Definition: errno.h:94
#define EBADF
Definition: errno.h:48
#define ENOTCONN
Definition: errno.h:118
#define EPIPE
Definition: errno.h:68
#define EBADMSG
Definition: errno.h:96
#define ENOSYS
Definition: errno.h:73
#define ENOPROTOOPT
Definition: errno.h:115
#define EISCONN
Definition: errno.h:105
#define ERANGE
Definition: errno.h:82
#define EOVERFLOW
Definition: errno.h:124
#define EDOM
Definition: errno.h:69
#define EADDRNOTAVAIL
Definition: errno.h:93
#define EOPNOTSUPP
Definition: errno.h:122
#define EFBIG
Definition: errno.h:63
#define ESRCH
Definition: errno.h:42
#define ENOTSOCK
Definition: errno.h:120
#define EMFILE
Definition: errno.h:61
#define EWOULDBLOCK
Definition: errno.h:132
#define EBUSY
Definition: errno.h:54
#define ENOMSG
Definition: errno.h:114
#define ECONNRESET
Definition: errno.h:100
#define EAGAIN
Definition: errno.h:50
#define EOWNERDEAD
Definition: errno.h:125
#define EILSEQ
Definition: errno.h:83
#define ENOTSUP
Definition: errno.h:121
#define ENOBUFS
Definition: errno.h:111
#define EIO
Definition: errno.h:44
#define EMLINK
Definition: errno.h:67
#define EHOSTUNREACH
Definition: errno.h:102
#define ECANCELED
Definition: errno.h:97
#define ENXIO
Definition: errno.h:45
#define EPERM
Definition: errno.h:40
#define ENOENT
Definition: errno.h:41
#define EINPROGRESS
Definition: errno.h:104
#define ETXTBSY
Definition: errno.h:131
#define ENODEV
Definition: errno.h:57
#define E2BIG
Definition: errno.h:46
#define EXDEV
Definition: errno.h:56
#define ENOLINK
Definition: errno.h:113
#define ETIMEDOUT
Definition: errno.h:130
#define ESPIPE
Definition: errno.h:65
#define ENOLCK
Definition: errno.h:72
#define ETIME
Definition: errno.h:129
#define EINTR
Definition: errno.h:43
#define EDEADLK
Definition: errno.h:70
#define ENOSPC
Definition: errno.h:64
Definition: stdexcept:81
#define EADDRINUSE
Definition: errno.h:92
#define EROFS
Definition: errno.h:66
#define ENOSTR
Definition: errno.h:117
#define ENOSR
Definition: errno.h:116
#define EMSGSIZE
Definition: errno.h:107
#define ENOTTY
Definition: errno.h:62
#define ENFILE
Definition: errno.h:60
#define EISDIR
Definition: errno.h:59
enum io_errc
strong
Enumerator
stream 
105  { // error codes for ios_base::failure
106  stream = 1
107  };

Function Documentation

_CRTIMP2_PURE const char* __CLRCALL_PURE_OR_CDECL _Syserror_map ( int  )
_CRTIMP2_PURE const char* __CLRCALL_PURE_OR_CDECL _Winerror_map ( int  )
const error_category & generic_category ( )
inline
642  { // get generic_category
644  }
Definition: system_error:623
const error_category & iostream_category ( )
inline
647  { // get iostream_category
649  }
Definition: system_error:623
error_code make_error_code ( generic_errno  _Errno)
inline
435  { // make an error_code
436  return (error_code((int)_Errno, generic_category()));
437  }
Definition: system_error:195
const error_category & generic_category() _NOEXCEPT
Definition: system_error:641
error_code make_error_code ( _Io_errc  _Errno)
inline
440  { // make an error_code
441  return (error_code((int)_Errno, iostream_category()));
442  }
Definition: system_error:195
const error_category & iostream_category() _NOEXCEPT
Definition: system_error:646
error_condition make_error_condition ( generic_errno  _Errno)
inline
446  { // make an error_condition
447  return (error_condition((int)_Errno, generic_category()));
448  }
const error_category & generic_category() _NOEXCEPT
Definition: system_error:641
Definition: system_error:286
error_condition make_error_condition ( _Io_errc  _Errno)
inline
451  { // make an error_condition
452  return (error_condition((int)_Errno, iostream_category()));
453  }
const error_category & iostream_category() _NOEXCEPT
Definition: system_error:646
Definition: system_error:286
bool operator!= ( const error_code _Left,
const error_condition _Right 
)
inline
422  { // test errors for inequality
423  return (!(_Left == _Right));
424  }
bool operator!= ( const error_condition _Left,
const error_code _Right 
)
inline
429  { // test errors for inequality
430  return (!(_Left == _Right));
431  }
bool operator== ( const error_code _Left,
const error_condition _Right 
)
inline
405  { // test errors for equality
406  return (_Left.category().equivalent(_Left.value(), _Right)
407  || _Right.category().equivalent(_Left, _Right.value()));
408  }
const error_category & category() const _NOEXCEPT
Definition: system_error:336
int value() const
Definition: system_error:240
virtual bool equivalent(int _Errval, const error_condition &_Cond) const _NOEXCEPT
Definition: system_error:382
int value() const _NOEXCEPT
Definition: system_error:331
const error_category & category() const
Definition: system_error:245
const _Ty & _Right
Definition: algorithm:4087
bool operator== ( const error_condition _Left,
const error_code _Right 
)
inline
413  { // test errors for equality
414  return (_Right.category().equivalent(_Right.value(), _Left)
415  || _Left.category().equivalent(_Right, _Left.value()));
416  }
const error_category & category() const _NOEXCEPT
Definition: system_error:336
int value() const
Definition: system_error:240
virtual bool equivalent(int _Errval, const error_condition &_Cond) const _NOEXCEPT
Definition: system_error:382
int value() const _NOEXCEPT
Definition: system_error:331
const error_category & category() const
Definition: system_error:245
const error_category & system_category ( )
inline
652  { // get system_category
654  }
Definition: system_error:623