ScopedError#
Fully qualified name: carb::ScopedError
Defined in carb/Error.h
-
class ScopedError#
A helper that keeps a copy of the current Error for the current thread and puts it back when destroyed.
Public Functions
-
inline explicit operator bool() const noexcept#
Bool operator.
- Returns:
trueif the stored error is NOT empty;falseotherwise.
-
inline cpp::zstring_view getMessage() const#
Message accessor.
- Returns:
The message in the stored Error, or an empty
zstring_view.
-
inline operator cpp::zstring_view() const#
zstring_view operator
- Returns:
The message in the stored Error, or an empty
zstring_view
-
inline explicit operator bool() const noexcept#