|
SlHelpers
|
Stores a string (usually an error string) to be retrieved later. More...
#include <LastError.h>
Public Member Functions | |
| LastErrorStream & | reset () noexcept |
| Wipe out everything. | |
| template<typename T > | |
| LastErrorStream & | operator<< (const T &x) |
| Store something into this error. More... | |
| std::string | lastError () const noexcept |
| Obtain the stored string. More... | |
Public Member Functions inherited from SlHelpers::LastErrorBase< More... > | |
| std::tuple_element_t< idx, Tuple > & | get () noexcept |
| Get n-th error member. | |
| const std::tuple_element_t< idx, Tuple > & | get () const noexcept |
| Get n-th error member. | |
| void | set (Arg &&val) noexcept |
| Set n-th error member. | |
Additional Inherited Members | |
Protected Member Functions inherited from SlHelpers::LastErrorBase< More... > | |
| void | resetMembers () noexcept |
| Wipe out members. | |
Stores a string (usually an error string) to be retrieved later.
This class uses a stringstream internally, so can be easilly appended.
|
inlinenoexcept |
Obtain the stored string.
|
inline |
Store something into this error.
| x | What to store |
x stored.