exceptions.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <sstream>
4 #include <stdexcept>
5 
6 #include "VariantValue.h" // for TrackID
7 
8 
10 {
11 
12 
13  struct TrajectoryException : public std::logic_error
14  {
15  TrajectoryException(const std::string& msg);
16  };
17 
18 
20  {
22  };
23 
24 
26  {
27  NoTrackWithID(const TrackID& id);
28  static std::string makeMsg(const TrackID& id);
29  };
30 
31 
33  {
34  EmptyTrack(const TrackID& id);
35  static std::string makeMsg(const TrackID& id);
36  };
37 
38 
40  {
41  WrongValueTypeInKeyframe(const TrackID& trackID, int typeIndex, int expectedTypeIndex);
42  };
43 
44 
45 
46 }
armarx::trajectory::error::EmptyTrack::makeMsg
static std::string makeMsg(const TrackID &id)
Definition: exceptions.cpp:29
armarx::trajectory::TrackID
std::string TrackID
ID of tracks.
Definition: VariantValue.h:16
armarx::trajectory::error::TrajectoryException::TrajectoryException
TrajectoryException(const std::string &msg)
Definition: exceptions.cpp:5
armarx::trajectory::error::NoTrackWithID::makeMsg
static std::string makeMsg(const TrackID &id)
Definition: exceptions.cpp:17
VariantValue.h
armarx::trajectory::error::InterpolateDifferentTypesError::InterpolateDifferentTypesError
InterpolateDifferentTypesError()
Definition: exceptions.cpp:9
armarx::trajectory::error::EmptyTrack::EmptyTrack
EmptyTrack(const TrackID &id)
Definition: exceptions.cpp:26
armarx::trajectory::error::NoTrackWithID
Definition: exceptions.h:25
armarx::trajectory::error::TrajectoryException
Definition: exceptions.h:13
armarx::trajectory::error::WrongValueTypeInKeyframe
Definition: exceptions.h:39
armarx::trajectory::error::NoTrackWithID::NoTrackWithID
NoTrackWithID(const TrackID &id)
Definition: exceptions.cpp:14
armarx::trajectory::error
Definition: exceptions.cpp:3
armarx::trajectory::error::InterpolateDifferentTypesError
Definition: exceptions.h:19
armarx::trajectory::error::EmptyTrack
Definition: exceptions.h:32
armarx::trajectory::error::WrongValueTypeInKeyframe::WrongValueTypeInKeyframe
WrongValueTypeInKeyframe(const TrackID &trackID, int typeIndex, int expectedTypeIndex)
Definition: exceptions.cpp:46