32#ifndef _RWSTD_RW_ERROR_H_INCLUDED
33#define _RWSTD_RW_ERROR_H_INCLUDED
35#ifndef _RWSTD_NO_INCLUDES
38# ifndef _RWSTD_RW_DEFS_H_INCLUDED
63#ifndef _RWSTD_ERROR_CATALOG
67# define _RWSTD_ERROR_CATALOG "rwstderr:1"
70#ifndef _RWSTD_ERROR_ENVVAR
73# define _RWSTD_ERROR_ENVVAR "RWSTDERR"
76#ifndef _RWSTD_ERROR_FIRST
78# define _RWSTD_ERROR_FIRST 0
88# define _RWSTD_ERROR_BAD_CAST (_RWSTD_ERROR_FIRST + 4)
89# define _RWSTD_ERROR_LOGIC_ERROR (_RWSTD_ERROR_FIRST + 5)
90# define _RWSTD_ERROR_DOMAIN_ERROR (_RWSTD_ERROR_FIRST + 6)
91# define _RWSTD_ERROR_INVALID_ARGUMENT (_RWSTD_ERROR_FIRST + 7)
92# define _RWSTD_ERROR_LENGTH_ERROR (_RWSTD_ERROR_FIRST + 8)
93# define _RWSTD_ERROR_OUT_OF_RANGE (_RWSTD_ERROR_FIRST + 9)
94# define _RWSTD_ERROR_RUNTIME_ERROR (_RWSTD_ERROR_FIRST + 10)
95# define _RWSTD_ERROR_RANGE_ERROR (_RWSTD_ERROR_FIRST + 11)
96# define _RWSTD_ERROR_OVERFLOW_ERROR (_RWSTD_ERROR_FIRST + 12)
97# define _RWSTD_ERROR_UNDERFLOW_ERROR (_RWSTD_ERROR_FIRST + 13)
99# define _RWSTD_ERROR_FAILBIT_SET (_RWSTD_ERROR_FIRST + 14)
100# define _RWSTD_ERROR_BADBIT_SET (_RWSTD_ERROR_FIRST + 15)
101# define _RWSTD_ERROR_EOFBIT_SET (_RWSTD_ERROR_FIRST + 16)
102# define _RWSTD_ERROR_IOSTATE_BIT_SET (_RWSTD_ERROR_FIRST + 17)
104# define _RWSTD_ERROR_FACET_NOT_FOUND (_RWSTD_ERROR_FIRST + 18)
105# define _RWSTD_ERROR_LOCALE_BAD_NAME (_RWSTD_ERROR_FIRST + 19)
106# define _RWSTD_ERROR_LOCALE_ERROR_NAME (_RWSTD_ERROR_FIRST + 20)
107# define _RWSTD_ERROR_CODECVT (_RWSTD_ERROR_FIRST + 21)
109# define _RWSTD_ERROR_BAD_POINTER (_RWSTD_ERROR_FIRST + 22)
110# define _RWSTD_ERROR_TRANSFORM (_RWSTD_ERROR_FIRST + 23)
111# define _RWSTD_ERROR_LOCALE_BAD_CAT (_RWSTD_ERROR_FIRST + 24)
113# define _RWSTD_ERROR_STRINGS \
114 "%s: %s: unspecified error", \
115 "%s: %s: exception", \
116 "%s: %s: unexpected exception", \
117 "%s: %s: bad_alloc: out of memory", \
118 "%s: %s: bad cast", \
119 "%s: %s: logic error", \
120 "%s: %s: domain error", \
121 "%s: %s: invalid argument", \
122 "%s: %s: length error: size %u out of range [0, %u)", \
123 "%s: %s: argument value %u out of range [0, %u)", \
124 "%s: %s: runtime error", \
125 "%s: %s: range error: invalid range [%d, %d)", \
126 "%s: %s: overflow error", \
127 "%s: %s: underflow error", \
130 "%s: stream object has set ios::failbit", \
131 "%s: stream object has set ios::badbit", \
132 "%s: stream object has set ios::eofbit", \
133 "%s: stream object has set %s", \
134 "%s: %s: facet %u not found in locale (\"%s\")", \
135 "%s: %s: bad locale name: \"%s\"", \
136 "%s: %s: failed to construct locale name", \
137 "%s: %s: conversion failed", \
138 "%s: %s: invalid pointer %p", \
139 "%s: %s: transformation failed", \
140 "%s: %s: bad category value: %#x"
142#define _RWSTD_ERROR_EXCEPTION "exception"
143#define _RWSTD_ERROR_BAD_EXCEPTION "unexpected exception"
144#define _RWSTD_ERROR_BAD_ALLOC "bad_alloc: out of memory"
#define _RWSTD_NAMESPACE(name)