#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.
154 : Term::Exception(error)
155{
157#if defined(_WIN32)
159 const errno_t result = _wcserror_s(&
message[0],
message.size(),
static_cast<int>(error));
161 else
163#else
167#endif
168}
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 170 of file exception.cpp.
171{
172 std::string
what{
"errno " + std::to_string(
code()) +
": " +
message()};
175}
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: