Error class.
More...
#include <error.hpp>
◆ Error()
tcalc::error::Error::Error |
( |
Code |
code, |
|
|
std::string |
msg |
|
) |
| |
|
inlinenoexcept |
Construct a new Error object (should be noexcept in semantic).
- Parameters
-
◆ code()
TCALC_INLINE auto tcalc::error::Error::code |
( |
| ) |
const |
|
inlinenoexcept |
Get error code.
- Returns
- Error code.
◆ msg()
TCALC_INLINE const auto & tcalc::error::Error::msg |
( |
| ) |
const |
|
inlinenoexcept |
Get error message.
- Returns
- Error message.
◆ what()
const char * tcalc::error::Error::what |
( |
| ) |
const |
|
inlineoverridenoexcept |
Get error message.
- Returns
- const char* Error message.
◆ MAX_MSG_LEN
constexpr std::size_t tcalc::error::Error::MAX_MSG_LEN = 256 |
|
staticconstexpr |
The documentation for this class was generated from the following files: