radar-coord-conversion-utility 0.8
radar_coord_exceptions.hpp
Go to the documentation of this file.
1
4#ifndef __RADAR_COORD_EXCEPTIONS__
5#define __RADAR_COORD_EXCEPTIONS__
6
7#include <stdexcept>
8
15class RadarCoordException : public std::logic_error
16{
17public:
22 RadarCoordException(const std::string& msg)
23 :std::logic_error(msg)
24 {
25 }
26 virtual ~RadarCoordException() throw()
27 {
28 }
29};
30
31/*===========================================================================*/
32
40{
41public:
46 RadarCoordUnsupportedException(const std::string& msg)
47 :RadarCoordException("Unsupported operation error: " + msg)
48 {
49 }
50 virtual ~RadarCoordUnsupportedException() throw()
51 {
52 }
53};
54
55/*===========================================================================*/
56
64{
65public:
71 RadarCoordFormatException(const std::string& msg)
73 {
74 }
75 virtual ~RadarCoordFormatException() throw()
76 {
77 }
78};
79
80/*===========================================================================*/
88{
89public:
95 RadarCoordBadDataException(const std::string& msg)
97 {
98 }
99 virtual ~RadarCoordBadDataException() throw()
100 {
101 }
102};
103
104
113{
114public:
120 RadarCoordUnknownFormatException(const std::string& msg)
122 {
123 }
124 virtual ~RadarCoordUnknownFormatException() throw()
125 {
126 }
127};
128
129/*===========================================================================*/
130
131/*===========================================================================*/
132
140{
141public:
148 :RadarCoordFormatException("Attribute " + name + " has a invalid value")
149 {
150 }
152 {
153 }
154};
155
156/*===========================================================================*/
157
165{
166public:
172 RadarCoordMissingGroupException(const std::string& name)
173 :RadarCoordFormatException("HDF5 Group " + name + " not found")
174 {
175 }
176 virtual ~RadarCoordMissingGroupException() throw()
177 {
178 }
179};
180
181/*===========================================================================*/
182
190{
191public:
197 RadarCoordMissingDatasetException(const std::string& name)
198 :RadarCoordFormatException("HDF5 dataset " + name + " not found")
199 {
200 }
201 virtual ~RadarCoordMissingDatasetException() throw()
202 {
203 }
204};
205
206/*===========================================================================*/
207
208
209/*===========================================================================*/
210
211
212#endif
RadarCoord bad data value passed.
Definition radar_coord_exceptions.hpp:88
RadarCoordBadDataException(const std::string &msg)
Initialize the exception.
Definition radar_coord_exceptions.hpp:95
Radar coord generic error.
Definition radar_coord_exceptions.hpp:16
RadarCoordException(const std::string &msg)
Initialize the exception.
Definition radar_coord_exceptions.hpp:22
RadarCoord format error.
Definition radar_coord_exceptions.hpp:64
RadarCoordFormatException(const std::string &msg)
Initialize the exception.
Definition radar_coord_exceptions.hpp:71
RadarCoord invalid attribute value error.
Definition radar_coord_exceptions.hpp:140
RadarCoordInvalidAttributeValueException(const std::string &name)
Initialize the exception.
Definition radar_coord_exceptions.hpp:147
RadarCoord missing group error.
Definition radar_coord_exceptions.hpp:190
RadarCoordMissingDatasetException(const std::string &name)
Initialize the exception.
Definition radar_coord_exceptions.hpp:197
RadarCoord missing group error.
Definition radar_coord_exceptions.hpp:165
RadarCoordMissingGroupException(const std::string &name)
Initialize the exception.
Definition radar_coord_exceptions.hpp:172
RadarCoord unknown format error.
Definition radar_coord_exceptions.hpp:113
RadarCoordUnknownFormatException(const std::string &msg)
Initialize the exception.
Definition radar_coord_exceptions.hpp:120
RadarCoord unsupported feature error.
Definition radar_coord_exceptions.hpp:40
RadarCoordUnsupportedException(const std::string &msg)
Initialize the exception.
Definition radar_coord_exceptions.hpp:46