Cpp-Processing
CelanturExceptions.h
1 #pragma once
2 #include <stdexcept>
3 
4 namespace celantur {
18 class ModelCompileException : public std::runtime_error {
19 public:
20  ModelCompileException(std::string_view message)
21  : std::runtime_error(message.data()) {}
22  const char* what() const noexcept override;
23 };
24 
25 class LicensingException : public std::runtime_error {
26 public:
27  LicensingException(std::string_view message)
28  : std::runtime_error(message.data()) {}
29 };
30 
39 class ModelLoadException : public std::runtime_error {
40 public:
41  ModelLoadException(std::string_view message)
42  : std::runtime_error(message.data()) {}
43  const char* what() const noexcept override;
44 };
45 
53 class DimensionMismatchException : public std::runtime_error {
54 public:
55  DimensionMismatchException(const std::string& message)
56  : std::runtime_error(message) {}
57 };
58 
61 
62 
68 class WrongConfig : public std::invalid_argument {
69 public:
70  WrongConfig(std::string_view message)
71  : std::invalid_argument(message.data()) {}
72 };
73 
78 } // namespace celantur
Exception class for dimension mismatches. This exception is thrown when there is a mismatch in expect...
Definition: CelanturExceptions.h:53
DimensionMismatchException(const std::string &message)
Definition: CelanturExceptions.h:55
Definition: CelanturExceptions.h:25
LicensingException(std::string_view message)
Definition: CelanturExceptions.h:27
Exception class for errors during model compilation. This exception is thrown when there are issues e...
Definition: CelanturExceptions.h:18
ModelCompileException(std::string_view message)
Definition: CelanturExceptions.h:20
const char * what() const noexcept override
Definition: CelanturExceptions.cpp:5
Exception class for errors during model loading. This exception is thrown when there are issues encou...
Definition: CelanturExceptions.h:39
ModelLoadException(std::string_view message)
Definition: CelanturExceptions.h:41
Exception that is getting thrown in case the user tries to set wrong configuration for the processor,...
Definition: CelanturExceptions.h:68
WrongConfig(std::string_view message)
Definition: CelanturExceptions.h:70
DimensionMismatchException dimension_mismatch_exception
Alias for backward compatibility.
Definition: CelanturExceptions.h:60
Definition: CelanturDetection.h:6