ALib C++ Library
by
Library Version:
2510 R0
Documentation generated by
Loading...
Searching...
No Matches
home
dev
A-Worx
ALib
src
alib
format
fmtexceptions.inl
Go to the documentation of this file.
1
//==================================================================================================
2
/// \file
3
/// This header-file is part of module \alib_format of the \aliblong.
4
///
5
/// \emoji :copyright: 2013-2025 A-Worx GmbH, Germany.
6
/// Published under \ref mainpage_license "Boost Software License".
7
//==================================================================================================
8
ALIB_EXPORT
namespace
alib::format
{
9
10
//==================================================================================================
11
/// Enumeration of exceptions thrown with classes found in sub-namespace #alib::format
12
/// of module \alib_format.
13
//==================================================================================================
14
enum class
FMTExceptions
15
{
16
/// Argument index '0' not allowed.
17
ArgumentIndexIs0
=11,
18
19
/// Argument index greater than number of arguments available.
20
ArgumentIndexOutOfBounds
=12,
21
22
/// Incompatible type code given argument type found.
23
IncompatibleTypeCode
=13,
24
25
// Formatter Python Style
26
/// Thrown by \alib{format;FormatterPythonStyle;FormatterPythonStyle}:
27
/// Closing bracket <c>'}'</c> not found.
28
MissingClosingBracket
=101,
29
30
/// Thrown by \alib{format;FormatterPythonStyle;FormatterPythonStyle}:
31
/// Missing precision integral value after <c>'.'</c> character.
32
MissingPrecisionValuePS
=102,
33
34
/// Thrown by \alib{format;FormatterPythonStyle;FormatterPythonStyle}:
35
/// Duplicate type code.
36
DuplicateTypeCode
=103,
37
38
/// Thrown by \alib{format;FormatterPythonStyle;FormatterPythonStyle}:
39
/// Unknown type code.
40
UnknownTypeCode
=104,
41
42
/// Thrown by \alib{format;FormatterPythonStyle;FormatterPythonStyle}:
43
/// Expected <c>'!'</c> not found.
44
ExclamationMarkExpected
=105,
45
46
/// Thrown by \alib{format;FormatterPythonStyle;FormatterPythonStyle}:
47
/// Unknown conversion after <c>'!'</c>.
48
UnknownConversionPS
=106,
49
50
/// Thrown by \alib{format;FormatterPythonStyle;FormatterPythonStyle}:
51
/// Precision specification not allowed with integer types.
52
PrecisionSpecificationWithInteger
=107,
53
54
/// Thrown by \alib{format;FormatterPythonStyle;FormatterPythonStyle}:
55
/// Missing replacement strings after conversion <c>!Replace</c>.
56
MissingReplacementStrings
=108,
57
58
59
60
// Formatter Java Style
61
/// Thrown by \alib{format;FormatterJavaStyle;FormatterJavaStyle}:
62
/// Formatting of negative values in brackets is not supported.
63
NegativeValuesInBracketsNotSupported
=201,
64
65
/// Thrown by \alib{format;FormatterJavaStyle;FormatterJavaStyle}:
66
/// Missing precision integral value after <c>'.'</c> character.
67
MissingPrecisionValueJS
=202,
68
69
/// Thrown by \alib{format;FormatterJavaStyle;FormatterJavaStyle}:
70
/// Output of floating point values in hexadecimal format not supported.
71
HexadecimalFloatFormatNotSupported
=203,
72
73
/// Thrown by \alib{format;FormatterJavaStyle;FormatterJavaStyle}:
74
/// The alternate form '#' is not supported with given conversion.
75
NoAlternateFormOfConversion
=204,
76
77
/// Thrown by \alib{format;FormatterJavaStyle;FormatterJavaStyle}:
78
/// Precision specification is not supported with given conversion.
79
NoPrecisionWithConversion
=205,
80
81
/// Thrown by \alib{format;FormatterJavaStyle;FormatterJavaStyle}:
82
/// Unknown conversion suffix with data/time conversion.
83
UnknownDateTimeConversionSuffix
=206,
84
85
/// Thrown by \alib{format;FormatterJavaStyle;FormatterJavaStyle}:
86
/// Unknown conversion character.
87
UnknownConversionJS
=207,
88
89
90
// PropertyFormatter and PropertyFormatters
91
/// Thrown by constructor of \alib{format;PropertyFormatter}
92
/// when a property identifier parsed from the format string has no corresponding entry in the
93
/// \alib{format;PropertyFormatter::TCallbackTable;TCallbackTable} provided.
94
UnknownPropertyInFormatString
=501,
95
96
/// Exception entry added in method \alib{format;PropertyFormatter::Format}
97
/// when the underlying formatter throws.
98
ErrorInResultingFormatString
=502,
99
100
/// Thrown by \alib{format;PropertyFormatters::Format} if a configuration variable
101
/// cannot be loaded or is empty.
102
///
103
/// \note To prevent this, software using this class should provide
104
/// \alib{camp::Camp;GetResourcePool;resourced} default values for each formatter variable.
105
MissingConfigurationVariable
=510,
106
107
108
// class Paragraphs
109
/// Thrown by \alib{format;Paragraphs::AddMarked}
110
/// when an unknown marker token was found.
111
UnknownMarker
=601,
112
113
/// Thrown by \alib{format;Paragraphs::AddMarked}
114
/// when a property identifier parsed from the format string has no corresponding entry in the
115
/// \alib{format;PropertyFormatter::TCallbackTable;TCallbackTable} provided.
116
EndmarkerWithoutStart
=602,
117
118
};
// FMTExceptions
119
120
}
// namespace [alib::format]
121
122
123
ALIB_ENUMS_ASSIGN_RECORD
(
alib::format::FMTExceptions
,
alib::exceptions::ERException
)
124
ALIB_BOXING_VTABLE_DECLARE
(
alib::format::FMTExceptions
, vt_system_fmtexceptions )
125
ALIB_ENUMS_ASSIGN_RECORD
#define ALIB_ENUMS_ASSIGN_RECORD(TEnum, TRecord)
Definition
enumrecords.prepro.hpp:19
ALIB_BOXING_VTABLE_DECLARE
#define ALIB_BOXING_VTABLE_DECLARE(TMapped, Identifier)
Definition
boxing.prepro.hpp:101
ALIB_EXPORT
#define ALIB_EXPORT
Definition
alib.inl:488
alib::format
Definition
bytesize.inl:8
alib::format::FMTExceptions
FMTExceptions
Definition
fmtexceptions.inl:15
alib::format::FMTExceptions::UnknownConversionPS
@ UnknownConversionPS
Definition
fmtexceptions.inl:48
alib::format::FMTExceptions::MissingReplacementStrings
@ MissingReplacementStrings
Definition
fmtexceptions.inl:56
alib::format::FMTExceptions::MissingPrecisionValuePS
@ MissingPrecisionValuePS
Definition
fmtexceptions.inl:32
alib::format::FMTExceptions::ExclamationMarkExpected
@ ExclamationMarkExpected
Definition
fmtexceptions.inl:44
alib::format::FMTExceptions::UnknownDateTimeConversionSuffix
@ UnknownDateTimeConversionSuffix
Definition
fmtexceptions.inl:83
alib::format::FMTExceptions::NoAlternateFormOfConversion
@ NoAlternateFormOfConversion
Definition
fmtexceptions.inl:75
alib::format::FMTExceptions::HexadecimalFloatFormatNotSupported
@ HexadecimalFloatFormatNotSupported
Definition
fmtexceptions.inl:71
alib::format::FMTExceptions::MissingConfigurationVariable
@ MissingConfigurationVariable
Definition
fmtexceptions.inl:105
alib::format::FMTExceptions::UnknownMarker
@ UnknownMarker
Definition
fmtexceptions.inl:111
alib::format::FMTExceptions::ArgumentIndexOutOfBounds
@ ArgumentIndexOutOfBounds
Argument index greater than number of arguments available.
Definition
fmtexceptions.inl:20
alib::format::FMTExceptions::MissingClosingBracket
@ MissingClosingBracket
Definition
fmtexceptions.inl:28
alib::format::FMTExceptions::UnknownPropertyInFormatString
@ UnknownPropertyInFormatString
Definition
fmtexceptions.inl:94
alib::format::FMTExceptions::DuplicateTypeCode
@ DuplicateTypeCode
Definition
fmtexceptions.inl:36
alib::format::FMTExceptions::PrecisionSpecificationWithInteger
@ PrecisionSpecificationWithInteger
Definition
fmtexceptions.inl:52
alib::format::FMTExceptions::EndmarkerWithoutStart
@ EndmarkerWithoutStart
Definition
fmtexceptions.inl:116
alib::format::FMTExceptions::ArgumentIndexIs0
@ ArgumentIndexIs0
Argument index '0' not allowed.
Definition
fmtexceptions.inl:17
alib::format::FMTExceptions::IncompatibleTypeCode
@ IncompatibleTypeCode
Incompatible type code given argument type found.
Definition
fmtexceptions.inl:23
alib::format::FMTExceptions::NegativeValuesInBracketsNotSupported
@ NegativeValuesInBracketsNotSupported
Definition
fmtexceptions.inl:63
alib::format::FMTExceptions::UnknownTypeCode
@ UnknownTypeCode
Definition
fmtexceptions.inl:40
alib::format::FMTExceptions::NoPrecisionWithConversion
@ NoPrecisionWithConversion
Definition
fmtexceptions.inl:79
alib::format::FMTExceptions::ErrorInResultingFormatString
@ ErrorInResultingFormatString
Definition
fmtexceptions.inl:98
alib::format::FMTExceptions::UnknownConversionJS
@ UnknownConversionJS
Definition
fmtexceptions.inl:87
alib::format::FMTExceptions::MissingPrecisionValueJS
@ MissingPrecisionValueJS
Definition
fmtexceptions.inl:67
alib::exceptions::ERException
Definition
exception.inl:43