Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
d2e7554f
Commit
d2e7554f
authored
May 14, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write docs.
parent
3303708e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
doc/index.rst
doc/index.rst
+5
-2
format.h
format.h
+9
-7
No files found.
doc/index.rst
View file @
d2e7554f
...
@@ -50,8 +50,11 @@ Write API
...
@@ -50,8 +50,11 @@ Write API
.. _formatstrings:
.. _formatstrings:
System Error Reporting
System Errors
----------------------
-------------
.. doxygenclass:: fmt::SystemError
:members:
.. doxygenfunction:: fmt::ThrowSystemError
.. doxygenfunction:: fmt::ThrowSystemError
...
...
format.h
View file @
d2e7554f
...
@@ -521,7 +521,7 @@ class FormatError : public std::runtime_error {
...
@@ -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 {
...
@@ -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 {
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment