Fawkes API  Fawkes Development Version
exceptions.h
1 /***************************************************************************
2  * exceptions.h - KDL Parser Exceptions
3  *
4  * Created: Fri Feb 14 17:35:15 2014
5  * Copyright 2014 Till Hofmann
6  *
7  ****************************************************************************/
8 
9 /* This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Library General Public License for more details.
18  *
19  * Read the full text in the LICENSE.GPL file in the doc directory.
20  */
21 
22 #ifndef __KDLPARSER_EXCEPTIONS_H_
23 #define __KDLPARSER_EXCEPTIONS_H_
24 
25 #include <core/exception.h>
26 
27 namespace fawkes {
28 
29 /**
30  * Unknown Joint Type
31  */
33 {
34  public:
35  /** Constructor.
36  * @param joint_type The unknown joint type in the URDF model
37  */
38  KDLParserUnknownJointTypeException(const char * joint_type)
39  {
40  append("Found unknown Joint Type %s", joint_type);
41  }
42 };
43 
44 /**
45  * URDF Model generation failed for unknown reasons
46  */
48 {
49  public:
51  {
52  append("Could not generate robot model");
53  }
54 };
55 
56 /**
57  * Tried to to parse Collada data which is not supported
58  */
60 {
61  public:
63  {
64  append("Collada Data models are currently not supported.");
65  }
66 };
67 
68 /**
69  * Failed to parse XML Document
70  */
72 {
73  public:
75  {
76  append("Could not parse the XML document");
77  }
78 };
79 
80 /**
81  * Failed to parse XML Element
82  */
84 {
85  public:
87  {
88  append("Could not parse the xml element");
89  }
90 };
91 
92 } // namespace fawkes
93 
94 
95 
96 
97 
98 
99 #endif
KDLParserUnknownJointTypeException(const char *joint_type)
Constructor.
Definition: exceptions.h:38
Fawkes library namespace.
Tried to to parse Collada data which is not supported.
Definition: exceptions.h:59
Base class for exceptions in Fawkes.
Definition: exception.h:36
Failed to parse XML Element.
Definition: exceptions.h:83
Failed to parse XML Document.
Definition: exceptions.h:71
URDF Model generation failed for unknown reasons.
Definition: exceptions.h:47
void append(const char *format,...)
Append messages to the message list.
Definition: exception.cpp:341