GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: include/sot/core/exception-dynamic.hh Lines: 0 3 0.0 %
Date: 2023-03-13 12:09:37 Branches: 0 0 - %

Line Branch Exec Source
1
/*
2
 * Copyright 2010,
3
 * François Bleibel,
4
 * Olivier Stasse,
5
 *
6
 * CNRS/AIST
7
 *
8
 */
9
10
#ifndef __SOT_DYNAMIC_EXCEPTION_H
11
#define __SOT_DYNAMIC_EXCEPTION_H
12
13
/* --------------------------------------------------------------------- */
14
/* --- INCLUDE --------------------------------------------------------- */
15
/* --------------------------------------------------------------------- */
16
17
#include <sot/core/exception-abstract.hh>
18
19
#include "sot/core/api.hh"
20
/* --------------------------------------------------------------------- */
21
/* --- CLASS ----------------------------------------------------------- */
22
/* --------------------------------------------------------------------- */
23
24
namespace dynamicgraph {
25
namespace sot {
26
27
/* \class ExceptionDynamic
28
 */
29
class SOT_CORE_EXPORT ExceptionDynamic : public ExceptionAbstract
30
31
{
32
 public:
33
  enum ErrorCodeEnum {
34
    GENERIC = ExceptionAbstract::DYNAMIC
35
36
    ,
37
    CANT_DESTROY_SIGNAL,
38
    JOINT_RANK,
39
    DYNAMIC_JRL,
40
    JOINT_SIZE,
41
    INTEGRATION
42
  };
43
44
  static const std::string EXCEPTION_NAME;
45
  virtual const std::string &getExceptionName(void) const {
46
    return EXCEPTION_NAME;
47
  }
48
49
 public:
50
  ExceptionDynamic(const ExceptionDynamic::ErrorCodeEnum &errcode,
51
                   const std::string &msg = "");
52
  ExceptionDynamic(const ExceptionDynamic::ErrorCodeEnum &errcode,
53
                   const std::string &msg, const char *format, ...);
54
  virtual ~ExceptionDynamic(void) throw() {}
55
};
56
57
} /* namespace sot */
58
} /* namespace dynamicgraph */
59
60
#endif /* #ifndef __SOT_DYNAMIC_EXCEPTION_H */
61
62
/*
63
 * Local variables:
64
 * c-basic-offset: 2
65
 * End:
66
 */