IDS peak ICV v1.2.0
Loading...
Searching...
No Matches
peak_icv_pipeline_utils.hpp
Go to the documentation of this file.
1
11#pragma once
12
14
15namespace peak
16{
17namespace pipeline
18{
19namespace detail
20{
21
22inline void ValidateVersion(int64_t version, const std::string& moduleName)
23{
24 if (version < 1)
25 {
26 throw peak::icv::NotSupportedException("The 'Version' entry " + std::to_string(version) + " in the archive for module "
27 + moduleName + " is invalid! Must be at least 1.");
28 }
29}
30} // namespace detail
31} // namespace pipeline
32} // namespace peak
Thrown when a requested operation is not implemented or supported.
void ValidateVersion(int64_t version, const std::string &moduleName)