1#ifndef SOURCEMETA_CORE_SEMVER_ERROR_H_
2#define SOURCEMETA_CORE_SEMVER_ERROR_H_
4#ifndef SOURCEMETA_CORE_SEMVER_EXPORT
5#include <sourcemeta/core/semver_export.h>
8#include <sourcemeta/core/error.h>
12namespace sourcemeta::core {
14SOURCEMETA_CORE_ERROR_WARNINGS_PUSH
21 :
Error{
"The input is not a valid Semantic Version"}, column_{column} {}
24 [[nodiscard]]
auto column() const noexcept -> std::uint64_t {
29 std::uint64_t column_;
37 :
Error{
"The numeric component of the Semantic Version overflows"},
41 [[nodiscard]]
auto column() const noexcept -> std::uint64_t {
46 std::uint64_t column_;
49SOURCEMETA_CORE_ERROR_WARNINGS_POP
Error(const StaticString message) noexcept
Construct the error given its message.
Definition error_base.h:84