Agroeye  1.0
RasterErrors.h
Go to the documentation of this file.
1 #ifndef RASTERERRORS_H
2 #define RASTERERRORS_H
3 
4 #include <stdexcept>
5 #include <string>
6 
7 namespace agroeye {
8 namespace errors {
9 
16 class IncorrectRaster : public std::runtime_error {
17 public:
23  IncorrectRaster(std::string msg) : std::runtime_error(msg) {};
24 
29  std::runtime_error("Raster error!") {};
30 };
31 
38 class IncorrectRasterExtent : public std::runtime_error {
39 public:
45  IncorrectRasterExtent(std::string msg) : std::runtime_error(msg) {};
46 
50  IncorrectRasterExtent() : std::runtime_error("Bad raster extent provided") {};
51 };
52 
56 class BadRasterDataSize : public std::runtime_error {
57 public:
58  BadRasterDataSize(std::string msg) : std::runtime_error(msg) {};
59 
64  std::runtime_error("Probably you want to read or write to big extent!") {};
65 };
66 
70 class BadPositionInRasterData : public std::runtime_error {
71 public:
72 
78  BadPositionInRasterData(std::string msg) : std::runtime_error(msg) {};
79 
83  BadPositionInRasterData() : std::runtime_error("Bad position provided") {};
84 };
88 class BadBandValue : public std::runtime_error {
89 public:
90 
91 
92  BadBandValue(std::string msg) : std::runtime_error(msg) {};
96  BadBandValue() : std::runtime_error("No such band! Check given value") {};
97 };
98 
102 class InvalidRasterDataAttributes : public std::runtime_error {
103 public:
107  InvalidRasterDataAttributes() : std::runtime_error("Incoherent RasterData is trying to be added") {};
108 };
109 } // namespace errors
110 } // namspace agroeye
111 
112 
113 #endif
Exceptions associated with agroeye::handlers::RasterBand.
Definition: RasterErrors.h:88
IncorrectRasterExtent()
Exception with default information.
Definition: RasterErrors.h:50
IncorrectRasterExtent(std::string msg)
Exception with custom information.
Definition: RasterErrors.h:45
Exceptions associated with agroeye::handlers::Raster.
Definition: RasterErrors.h:16
BadBandValue()
Exception with default information.
Definition: RasterErrors.h:96
BadPositionInRasterData(std::string msg)
Exception with custom information.
Definition: RasterErrors.h:78
Exceptions associated with agroeye::handlers::RasterData.
Definition: RasterErrors.h:70
Definition: ContainerMath.h:11
IncorrectRaster()
Exception with default information.
Definition: RasterErrors.h:28
Exceptions associated with agroeye::handlers::RasterData.
Definition: RasterErrors.h:56
InvalidRasterDataAttributes()
Default errors message.
Definition: RasterErrors.h:107
BadRasterDataSize(std::string msg)
Definition: RasterErrors.h:58
BadPositionInRasterData()
Exception with default information.
Definition: RasterErrors.h:83
BadBandValue(std::string msg)
Definition: RasterErrors.h:92
BadRasterDataSize()
Exception with default information.
Definition: RasterErrors.h:63
Exceptions associated with agroeye::handlers::Raster.
Definition: RasterErrors.h:38
IncorrectRaster(std::string msg)
Exception with custom information.
Definition: RasterErrors.h:23
Exception thrown when to RasterDataGroup incoherent RasterData is added.
Definition: RasterErrors.h:102