mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Write docs.
This commit is contained in:
parent
3303708e94
commit
d2e7554f74
@ -50,8 +50,11 @@ Write API
|
|||||||
|
|
||||||
.. _formatstrings:
|
.. _formatstrings:
|
||||||
|
|
||||||
System Error Reporting
|
System Errors
|
||||||
----------------------
|
-------------
|
||||||
|
|
||||||
|
.. doxygenclass:: fmt::SystemError
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenfunction:: fmt::ThrowSystemError
|
.. doxygenfunction:: fmt::ThrowSystemError
|
||||||
|
|
||||||
|
16
format.h
16
format.h
@ -521,7 +521,7 @@ class FormatError : public std::runtime_error {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
An error returned by the operating system or the language runtime,
|
An error returned by an operating system or a language runtime,
|
||||||
for example a file opening error.
|
for example a file opening error.
|
||||||
*/
|
*/
|
||||||
class SystemError : public std::runtime_error {
|
class SystemError : public std::runtime_error {
|
||||||
@ -1589,9 +1589,10 @@ class SystemErrorSink {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
\rst
|
\rst
|
||||||
Formats a message and throws SystemError with the description of the form
|
Formats a message and throws :cpp:class:`fmt::SystemError` with
|
||||||
"<message>: <system-message>", where *<message>* is the formatted message
|
the description of the form "*<message>*: *<system-message>*",
|
||||||
and *<system-message>* is the system message corresponding to the error code.
|
where *<message>* is the formatted message and *<system-message>*
|
||||||
|
is the system message corresponding to the error code.
|
||||||
*error_code* is a system error code as given by ``errno``.
|
*error_code* is a system error code as given by ``errno``.
|
||||||
\endrst
|
\endrst
|
||||||
*/
|
*/
|
||||||
@ -1623,9 +1624,10 @@ class WinErrorSink {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
\rst
|
\rst
|
||||||
Formats a message and throws SystemError with the description of the form
|
Formats a message and throws :cpp:class:`fmt::SystemError` with
|
||||||
"<message>: <system-message>", where *<message>* is the formatted message
|
the description of the form "*<message>*: *<system-message>*",
|
||||||
and *<system-message>* is the system message corresponding to the error code.
|
where *<message>* is the formatted message and *<system-message>*
|
||||||
|
is the system message corresponding to the error code.
|
||||||
*error_code* is a Windows error code as given by ``GetLastError``.
|
*error_code* is a Windows error code as given by ``GetLastError``.
|
||||||
|
|
||||||
This function is only available on Windows.
|
This function is only available on Windows.
|
||||||
|
Loading…
Reference in New Issue
Block a user