libcvd
vision_exceptions.h
1 #ifndef CVD_INCLUDE_VISION_EXCEPTIONS_H
2 #define CVD_INCLUDE_VISION_EXCEPTIONS_H
3 
4 #include <cvd/exceptions.h>
5 #include <string>
6 
7 namespace CVD
8 {
9 
10 namespace Exceptions
11 {
12 
15  namespace Vision
16  {
19  struct All : public CVD::Exceptions::All
20  {
21  using CVD::Exceptions::All::All;
22  };
23 
26  struct IncompatibleImageSizes : public All
27  {
28  IncompatibleImageSizes(const std::string& function)
29  : All("Incompatible image sizes in " + function) {};
30  };
31 
34  struct ImageRefNotInImage : public All
35  {
36  ImageRefNotInImage(const std::string& function)
37  : All("Input ImageRefs not in image in " + function) {};
38  };
39 
40  struct BadInput : public All
41  {
42  BadInput(const std::string& function)
43  : All("Bad input in " + function) {};
44  };
45  };
46 }
47 }
48 
49 #endif
Input ImageRef not within image dimensions.
Definition: vision_exceptions.h:34
Input images have incompatible dimensions.
Definition: vision_exceptions.h:26
Definition: vision_exceptions.h:40
All classes and functions are within the CVD namespace.
Definition: argb.h:6
Base class for all Image_IO exceptions.
Definition: vision_exceptions.h:19
Base class for all CVD exceptions.
Definition: exceptions.h:15