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