Struct runtime_error
struct runtime_error
{
runtime_error() noexcept = default;
runtime_error(runtime_error&&) = default;
runtime_error(runtime_error const& other) noexcept;
runtime_error(Status const status) noexcept;
runtime_error(Status const status, std::string const& message) noexcept;
auto operator=(runtime_error&&) -> runtime_error& = default;
auto operator=(runtime_error const& other) -> runtime_error&;
auto status() const noexcept -> Status;
auto message() const noexcept -> const std::string&;
};
Constructors
Initializes a new runtime_error
instance with the specified properties, or default values if missing.
runtime_error() noexcept = default;
runtime_error(runtime_error&&) = default;
auto operator=(runtime_error&&) -> runtime_error& = default;
runtime_error(runtime_error const& other) noexcept;
runtime_error(Status const status) noexcept;
runtime_error(Status const status, std::string const& message) noexcept;
Operators
operator=
auto operator=(runtime_error&&) -> runtime_error& = default;
auto operator=(runtime_error const& other) -> runtime_error&;
The runtime_error
class supports copy and move assignment.
Properties
status
Provides the status code for the error.
auto status() const noexcept -> Status;
message
Provides a description of the error, valid for the lifetime of the error object.
auto message() const noexcept -> const std::string&;