Agroeye  1.0
SegmentationErrors.h
Go to the documentation of this file.
1 #ifndef SEGMENTATIONERRORS_H
2 #define SEGMENTATIONERRORS_H
3 
4 #include <stdexcept>
5 
6 namespace agroeye {
7 namespace errors {
8 
17 class IncorrectSideSize : public std::runtime_error {
18 public:
24  IncorrectSideSize(std::string msg) : std::runtime_error(msg) {};
25 
30  std::runtime_error("Given side is incorrect!") {};
31 };
32 
33 
37 class InvalideThresholdValue : public std::runtime_error {
38 public:
42  InvalideThresholdValue() : std::runtime_error("Threshold value cannot be negative") {};
43 };
44 
45 
46 } // namespace errors
47 } // namespace agroeye
48 
49 #endif
IncorrectSideSize(std::string msg)
Exception with custom information.
Definition: SegmentationErrors.h:24
InvalideThresholdValue()
Default error message.
Definition: SegmentationErrors.h:42
Exception associated with agroeye::operations::ChessboardSegmentation.
Definition: SegmentationErrors.h:17
Definition: ContainerMath.h:11
IncorrectSideSize()
Exception with default information.
Definition: SegmentationErrors.h:29
Errors related to invalid value of threshold parameter in quadtree segmentation.
Definition: SegmentationErrors.h:37