11 ErrorInfo() =
default;
13 ErrorInfo(ErrorInfo
const&) =
default;
14 ErrorInfo& operator=(ErrorInfo
const&) =
default;
15 ErrorInfo(ErrorInfo&&)
noexcept =
default;
16 ErrorInfo& operator=(ErrorInfo&&)
noexcept =
default;
18 ErrorInfo(E
const& error) : mError(error) {}
20 [[nodiscard]]
constexpr E& code() {
return mError; }
21 [[nodiscard]]
constexpr E
const& code()
const {
return mError; }
25 std::vector<ErrorInfo> mStackErrors;