mrdocs::Error::Error

Constructor.

Synopses

Declared in <mrdocs/Support/Error.hpp>

Constructor.

constexpr
Error() noexcept = default;

Constructor.

constexpr
Error(Error const& other) = default;

Constructor.

constexpr
Error(Error&& other) noexcept = default;

Constructor.

explicit
Error(std::exception const& ex);

Constructor.

explicit
Error(
    std::string reason,
    std::source_location loc = source_location::current());

Constructor.

explicit
Error(
    std::error_code const& ec,
    std::source_location loc = source_location::current());

Constructor.

Error(
    std::vector<Error> const& errors,
    std::source_location loc = source_location::current());

Parameters

Name

Description

reason

A string indicating the cause of the failure. This must not be empty.

loc

The source location where the error occurred.

ec

The error code.

errors

The list of errors to combine.

Created with MrDocs