brainrat-private 6.0.4
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
28using namespace carto;
29using 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
43class 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
56GENERATE_STACKER_ERROR_DECLARATION( zero_dynamic_error )
57GENERATE_STACKER_ERROR_DECLARATION( modes_extraction_error )
58GENERATE_STACKER_ERROR_DECLARATION( modes_extraction_after_remove_error )
59GENERATE_STACKER_ERROR_DECLARATION( components_extraction_error )
60GENERATE_STACKER_ERROR_DECLARATION( continuity_parameter_error )
61GENERATE_STACKER_ERROR_DECLARATION( surface_criteria_mode_error )
62GENERATE_STACKER_ERROR_DECLARATION( surface_criteria_projection_error )
63GENERATE_STACKER_ERROR_DECLARATION( validity_tests_error )
64GENERATE_STACKER_ERROR_DECLARATION( incorrect_components_number_error )
65GENERATE_STACKER_ERROR_DECLARATION( dimension_x_error )
66GENERATE_STACKER_ERROR_DECLARATION( dimension_y_error )
67
68#endif
const int errno_stacker()
virtual ~stacker_error()
stacker_error(const int errno_stacker, const string &message)
STL namespace.
#define GENERATE_STACKER_ERROR_DECLARATION(CLASS)