brainrat-private  5.1.2
stackerexcept.h
Go to the documentation of this file.
1 /* Copyright (C) 2000-2013 CEA
2  *
3  * This software and supporting documentation were developed by
4  * bioPICSEL
5  * CEA/DSV/I²BM/MIRCen/LMN, Batiment 61,
6  * 18, route du Panorama
7  * 92265 Fontenay-aux-Roses
8  * France
9  */
10 
11 
12 #ifndef BRAINRAT_EXCEPTION_STACKEREXCEPT_H
13 #define BRAINRAT_EXCEPTION_STACKEREXCEPT_H
14 
15 
16 //=============================================================================
17 // H E A D E R F I L E S
18 //=============================================================================
19 
20 #include <stdexcept>
21 #include <cartobase/config/cartobase_config.h>
22 
23 
24 //=============================================================================
25 // C L A S S D E C L A R A T I O N
26 //=============================================================================
27 
28 using namespace carto;
29 using namespace std;
30 
31 
32 #define GENERATE_STACKER_ERROR_DECLARATION( CLASS ) \
33  class CLASS : public stacker_error \
34  { \
35  public: \
36  CLASS(); \
37  virtual ~CLASS() throw(); \
38  }; \
39 
40 
43 class stacker_error : public runtime_error
44 {
45 
46  public:
47  stacker_error( const int errno_stacker, const string& message );
48  const int errno_stacker();
49  virtual ~stacker_error() throw ();
50 
51  private:
52  static string init( const int errno_stacker, const string& message );
53  int _errno_stacker;
54 };
55 
56 GENERATE_STACKER_ERROR_DECLARATION( zero_dynamic_error )
57 GENERATE_STACKER_ERROR_DECLARATION( modes_extraction_error )
58 GENERATE_STACKER_ERROR_DECLARATION( modes_extraction_after_remove_error )
59 GENERATE_STACKER_ERROR_DECLARATION( components_extraction_error )
60 GENERATE_STACKER_ERROR_DECLARATION( continuity_parameter_error )
61 GENERATE_STACKER_ERROR_DECLARATION( surface_criteria_mode_error )
62 GENERATE_STACKER_ERROR_DECLARATION( surface_criteria_projection_error )
63 GENERATE_STACKER_ERROR_DECLARATION( validity_tests_error )
64 GENERATE_STACKER_ERROR_DECLARATION( incorrect_components_number_error )
65 GENERATE_STACKER_ERROR_DECLARATION( dimension_x_error )
66 GENERATE_STACKER_ERROR_DECLARATION( dimension_y_error )
67 
68 #endif
Exceptions thrown during stacking.
Definition: stackerexcept.h:44
const int errno_stacker()
virtual ~stacker_error()
stacker_error(const int errno_stacker, const string &message)
#define GENERATE_STACKER_ERROR_DECLARATION(CLASS)
Definition: stackerexcept.h:32