Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
fmt::SystemError Class Reference

#include <format.h>

Inheritance diagram for fmt::SystemError:
Inheritance graph
[legend]

Public Member Functions

int error_code () const
 
 SystemError (int error_code, CStringRef message)
 
 ~SystemError () throw ()
 

Protected Types

typedef char Char
 

Protected Member Functions

 SystemError ()
 
- Protected Member Functions inherited from fmt::internal::RuntimeError
 RuntimeError ()
 
 ~RuntimeError () throw ()
 

Protected Attributes

int error_code_
 

Private Member Functions

void init (int err_code, CStringRef format_str, ArgList args)
 

Detailed Description

An error returned by an operating system or a language runtime, for example a file opening error.

Definition at line 2652 of file format.h.

Member Typedef Documentation

typedef char fmt::SystemError::Char
protected

Definition at line 2660 of file format.h.

Constructor & Destructor Documentation

fmt::SystemError::SystemError ( )
inlineprotected

Definition at line 2662 of file format.h.

fmt::SystemError::SystemError ( int  error_code,
CStringRef  message 
)
inline

Constructs a :class:fmt::SystemError object with the description of the form

.. parsed-literal:: <message>*: *<system-message>*

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. If error_code is not a valid error code such as -1, the system message may look like "Unknown error -1" and is platform-dependent.

Example**::

This throws a SystemError with the description cannot open file 'madeup': No such file or directory or similar (system message may vary). const char *filename = "madeup"; std::FILE *file = std::fopen(filename, "r"); if (!file) throw fmt::SystemError(errno, "cannot open file '{}'", filename);

Definition at line 2690 of file format.h.

FMT_FUNC fmt::SystemError::~SystemError ( )
throw (
)

Definition at line 85 of file format.cc.

Member Function Documentation

int fmt::SystemError::error_code ( ) const
inline

Definition at line 2698 of file format.h.

FMT_FUNC void fmt::SystemError::init ( int  err_code,
CStringRef  format_str,
ArgList  args 
)
private

Definition at line 438 of file format.cc.

Member Data Documentation

int fmt::SystemError::error_code_
protected

Definition at line 2658 of file format.h.


The documentation for this class was generated from the following files:


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:09