#include <cpp-terminal/private/exception.hpp>
Definition at line 54 of file exception.hpp.
◆ Errno() [1/3]
Term::Private::Errno::Errno |
( |
const Errno & | | ) |
|
|
defaultnoexcept |
◆ Errno() [2/3]
Term::Private::Errno::Errno |
( |
Errno && | | ) |
|
|
defaultnoexcept |
◆ Errno() [3/3]
Term::Private::Errno::Errno |
( |
| ) |
|
|
noexcept |
Definition at line 115 of file exception.cpp.
116{
117#if defined(_WIN32)
118 _set_errno(0);
119#else
120 errno = {0};
121#endif
122}
◆ ~Errno()
Term::Private::Errno::~Errno |
( |
| ) |
|
|
virtualnoexcept |
Definition at line 124 of file exception.cpp.
125{
126#if defined(_WIN32)
127 _set_errno(0);
128#else
129 errno = {0};
130#endif
131}
◆ check_if()
Definition at line 137 of file exception.cpp.
138{
139#if defined(_WIN32)
140 int err{
static_cast<int>(
m_errno)};
141 _get_errno(&err);
142#else
143 m_errno =
static_cast<std::uint32_t
>(errno);
144#endif
146 return *this;
147}
◆ check_value()
bool Term::Private::Errno::check_value |
( |
| ) |
const |
|
noexcept |
◆ error()
std::int64_t Term::Private::Errno::error |
( |
| ) |
const |
|
noexcept |
◆ operator=() [1/2]
Errno & Term::Private::Errno::operator= |
( |
const Errno & | | ) |
|
|
defaultnoexcept |
◆ operator=() [2/2]
Errno & Term::Private::Errno::operator= |
( |
Errno && | | ) |
|
|
defaultnoexcept |
◆ throw_exception()
void Term::Private::Errno::throw_exception |
( |
const std::string & | str = {} | ) |
const |
◆ m_check_value
bool Term::Private::Errno::m_check_value {false} |
|
private |
◆ m_errno
std::int64_t Term::Private::Errno::m_errno {0} |
|
private |
The documentation for this class was generated from the following files: