22
General utilities library
[utilities]
22.14
Formatting
[format]
22.14.10
Class
format_
error
[format.error]
🔗
namespace
std
{
class
format_error
:
public
runtime_error
{
public
:
explicit
format_error
(
const
string
&
what_arg
)
;
explicit
format_error
(
const
char
*
what_arg
)
;
}
;
}
1
#
The class
format_
error
defines the type of objects thrown as exceptions to report errors from the formatting library
.
🔗
format_error
(
const
string
&
what_arg
)
;
2
#
Postconditions
:
strcmp
(
what
(
)
, what_
arg
.
c_
str
(
)
)
=
=
0
.
🔗
format_error
(
const
char
*
what_arg
)
;
3
#
Postconditions
:
strcmp
(
what
(
)
, what_
arg
)
=
=
0
.