Lightweight 0.1.0
Loading...
Searching...
No Matches
Error.hpp
1// SPDX-License-Identifier: Apache-2.0
2
3#pragma once
4
5#include <format>
6#include <stdexcept>
7#include <string_view>
8
9/// @brief Represents an error when a record is required to be loaded but is not.
10///
11/// @ingroup DataMapper
12class SqlRequireLoadedError: public std::runtime_error
13{
14 public:
15 explicit SqlRequireLoadedError(std::string_view columnType):
16 std::runtime_error(std::format("Could not load the data record: {}", columnType))
17 {
18 }
19};
Represents an error when a record is required to be loaded but is not.
Definition Error.hpp:13