exception-pg.h
Go to the documentation of this file.
1 /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2  * Copyright Projet JRL-Japan, 2008
3  *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4  *
5  * File: ExceptionPatternGenerator.h
6  * Project: SOT
7  * Author: Olivier Stasse
8  *
9  * Version control
10  * ===============
11  *
12  * $Id$
13  *
14  * Description
15  * ============
16  *
17  *
18  * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
19 
20 #ifndef __SOT_PATTERN_GENERATOR_EXCEPTION_H
21 #define __SOT_PATTERN_GENERATOR_EXCEPTION_H
22 
23 /* --------------------------------------------------------------------- */
24 /* --- INCLUDE --------------------------------------------------------- */
25 /* --------------------------------------------------------------------- */
26 
27 #include <sot/core/exception-abstract.hh>
28 
29 /* --------------------------------------------------------------------- */
30 /* --- API ------------------------------------------------------------- */
31 /* --------------------------------------------------------------------- */
32 
33 #if defined(WIN32)
34 #if defined(exception_pg_EXPORTS)
35 #define EXCEPTION_PG_EXPORT __declspec(dllexport)
36 #else
37 #define EXCEPTION_PG_EXPORT __declspec(dllimport)
38 #endif
39 #else
40 #define EXCEPTION_PG_EXPORT
41 #endif
42 
43 /* --------------------------------------------------------------------- */
44 /* --- CLASS ----------------------------------------------------------- */
45 /* --------------------------------------------------------------------- */
46 
47 namespace dynamicgraph {
48 namespace sot {
49 
50 /* \class ExceptionPatternGenerator
51  */
52 class EXCEPTION_PG_EXPORT ExceptionPatternGenerator : public ExceptionAbstract {
53  public:
55  GENERIC = ExceptionAbstract::PATTERN_GENERATOR,
61  BAD_CAST
62  };
63 
64  static const std::string EXCEPTION_NAME;
65  virtual const std::string &getExceptionName(void) const {
66  return EXCEPTION_NAME;
67  }
68 
69  public:
72  const std::string &msg = "");
75  const std::string &msg, const char *format, ...);
76  virtual ~ExceptionPatternGenerator(void) throw() {}
77 };
78 
79 } // namespace sot
80 } // namespace dynamicgraph
81 
82 #endif /* #ifndef __SOT_PATTERN_GENERATOR_EXCEPTION_H */
dynamicgraph
Definition: exception-pg.h:47
dynamicgraph::sot::ExceptionPatternGenerator::ErrorCodeEnum
ErrorCodeEnum
Definition: exception-pg.h:54
EXCEPTION_PG_EXPORT
#define EXCEPTION_PG_EXPORT
Definition: exception-pg.h:40
dynamicgraph::sot::ExceptionPatternGenerator::SELECTOR_RANK
@ SELECTOR_RANK
Definition: exception-pg.h:60
dynamicgraph::sot::ExceptionPatternGenerator::READ_FILE
@ READ_FILE
Definition: exception-pg.h:56
dynamicgraph::sot::ExceptionPatternGenerator::PATTERN_GENERATOR_JRL
@ PATTERN_GENERATOR_JRL
Definition: exception-pg.h:59
dynamicgraph::sot::ExceptionPatternGenerator
Definition: exception-pg.h:52
dynamicgraph::sot::ExceptionPatternGenerator::getExceptionName
virtual const std::string & getExceptionName(void) const
Definition: exception-pg.h:65
dynamicgraph::sot::ExceptionPatternGenerator::JOINT_RANK
@ JOINT_RANK
Definition: exception-pg.h:58
dynamicgraph::sot::ExceptionPatternGenerator::CANT_DESTROY_SIGNAL
@ CANT_DESTROY_SIGNAL
Definition: exception-pg.h:57
dynamicgraph::sot::ExceptionPatternGenerator::~ExceptionPatternGenerator
virtual ~ExceptionPatternGenerator(void)
Definition: exception-pg.h:76
dynamicgraph::sot::ExceptionPatternGenerator::EXCEPTION_NAME
static const std::string EXCEPTION_NAME
Definition: exception-pg.h:64