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 
9 {
10 
11 
12  struct TrajectoryException : public std::logic_error
13  {
14  TrajectoryException(const std::string& msg);
15  };
16 
18  {
20  };
21 
23  {
24  NoTrackWithID(const TrackID& id);
25  static std::string makeMsg(const TrackID& id);
26  };
27 
29  {
30  EmptyTrack(const TrackID& id);
31  static std::string makeMsg(const TrackID& id);
32  };
33 
35  {
36  WrongValueTypeInKeyframe(const TrackID& trackID, int typeIndex, int expectedTypeIndex);
37  };
38 
39 
40 } // namespace armarx::trajectory::error
armarx::trajectory::error::EmptyTrack::makeMsg
static std::string makeMsg(const TrackID &id)
Definition: exceptions.cpp:32
armarx::trajectory::TrackID
std::string TrackID
ID of tracks.
Definition: VariantValue.h:15
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:19
VariantValue.h
armarx::trajectory::error::InterpolateDifferentTypesError::InterpolateDifferentTypesError
InterpolateDifferentTypesError()
Definition: exceptions.cpp:9
armarx::trajectory::error::EmptyTrack::EmptyTrack
EmptyTrack(const TrackID &id)
Definition: exceptions.cpp:27
armarx::trajectory::error::NoTrackWithID
Definition: exceptions.h:22
armarx::trajectory::error::TrajectoryException
Definition: exceptions.h:12
armarx::trajectory::error::WrongValueTypeInKeyframe
Definition: exceptions.h:34
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:17
armarx::trajectory::error::EmptyTrack
Definition: exceptions.h:28
armarx::trajectory::error::WrongValueTypeInKeyframe::WrongValueTypeInKeyframe
WrongValueTypeInKeyframe(const TrackID &trackID, int typeIndex, int expectedTypeIndex)
Definition: exceptions.cpp:52