#include <cpp-terminal/private/exception.hpp>
Definition at line 73 of file exception.hpp.
◆ ErrnoException() [1/3]
Term::Private::ErrnoException::ErrnoException |
( |
const ErrnoException & | | ) |
|
|
default |
◆ ErrnoException() [2/3]
◆ ErrnoException() [3/3]
Term::Private::ErrnoException::ErrnoException |
( |
const std::int64_t & | error, |
|
|
const std::string & | context = {} ) |
|
explicit |
Definition at line 154 of file exception.cpp.
155{
157#if defined(_WIN32)
161#else
165#endif
166}
void setContext(const std::string &context) noexcept
static const constexpr std::size_t m_maxSize
void setMessage(const std::string &message) noexcept
std::string message() const noexcept
std::string context() const noexcept
std::string to_narrow(const std::wstring &wstr)
◆ ~ErrnoException()
Term::Private::ErrnoException::~ErrnoException |
( |
| ) |
|
|
overridedefault |
◆ build_what()
void Term::Private::ErrnoException::build_what |
( |
| ) |
const |
|
finalprivatevirtualnoexcept |
Reimplemented from Term::Exception.
Definition at line 168 of file exception.cpp.
169{
170 std::string
what{
"errno " + std::to_string(
code()) +
": " +
message()};
173}
const char * what() const noexcept override
void setWhat(const std::string &what) const noexcept
std::int64_t code() const noexcept
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: