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 
34 class ModelLoadException : public std::runtime_error {
35 public:
36  ModelLoadException(std::string_view message)
37  : std::runtime_error(message.data()) {}
38  const char* what() const noexcept override;
39 };
40 
48 class DimensionMismatchException : public std::runtime_error {
49 public:
50  DimensionMismatchException(const std::string& message)
51  : std::runtime_error(message) {}
52 };
53 
56 
61 } // namespace celantur
Exception class for dimension mismatches. This exception is thrown when there is a mismatch in expect...
Definition: CelanturExceptions.h:48
DimensionMismatchException(const std::string &message)
Definition: CelanturExceptions.h:50
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:34
ModelLoadException(std::string_view message)
Definition: CelanturExceptions.h:36
DimensionMismatchException dimension_mismatch_exception
Alias for backward compatibility.
Definition: CelanturExceptions.h:55
Definition: CelanturDetection.h:6