#include <vpRobotException.h>
|
enum | errorRobotCodeEnum {
constructionError,
uniqueRobotError,
wrongStateError,
stateModificationError,
communicationError,
lowLevelError,
readingParametersError,
notInitializedError,
notImplementedError,
positionOutOfRangeError
} |
|
enum | generalExceptionEnum {
memoryAllocationError,
memoryFreeError,
functionNotImplementedError,
ioError,
cannotUseConstructorError,
notImplementedError,
divideByZeroError,
dimensionError,
fatalError,
badValue,
notInitialized
} |
|
Error that can be emited by the vpRobot class and its derivates.
Definition at line 71 of file vpRobotException.h.
Lists the possible error than can be emmited while calling vpRobot member.
Enumerator |
---|
constructionError |
Erreur lancee par le constructor.
|
uniqueRobotError |
Erreur lancee lors de la construction d'un objet CRobot correspondant a un robot reel si l'objet de la classe en question doit etre unique.
|
wrongStateError |
Erreur lancee par les fonctions de commande si le robot n'est pas dans le bon etat au moment du passage d'ordre.
|
stateModificationError |
Erreur lancee par les fonctions de changement d'etat si le changement demandee n'est pas possible.
|
communicationError |
Erreur generee lors d'un retour non nulle d'une fonction de communication de la lib Afma6.
|
lowLevelError |
Erreur lancee apres un appel a une fonction de la lib bas-niveau de control de l'afma6 ayant renvoye une erreur.
|
readingParametersError |
Erreur lancee par la fonction de parsing des parametres du robot, si le fichier donne en entree n'est pas valide.
|
notInitializedError |
Erreur lancee par les methodes d'une classe qui necessite un appel a une fonction d'initialisation apres la construction si l'init n'a pas ete fait.
|
notImplementedError |
Erreur lancee par les fonctions decrites dans lAPI mais pas completement implementee. Dans ce cas, la fonction affiche simplement un message d'erreur avant de sortir par le 'throw'.
|
positionOutOfRangeError |
Position is out of range.
|
Definition at line 78 of file vpRobotException.h.
Enumerator |
---|
memoryAllocationError |
|
memoryFreeError |
|
functionNotImplementedError |
|
ioError |
|
cannotUseConstructorError |
|
notImplementedError |
|
divideByZeroError |
|
dimensionError |
|
fatalError |
|
badValue |
Used to indicate that a value is not in the allowed range.
|
notInitialized |
Used to indicate that a parameter is not initialized.
|
Definition at line 93 of file vpException.h.
vpRobotException::vpRobotException |
( |
const int |
code, |
|
|
const char * |
msg |
|
) |
| |
|
inline |
vpRobotException::vpRobotException |
( |
const int |
code, |
|
|
const std::string & |
msg |
|
) |
| |
|
inline |
vpRobotException::vpRobotException |
( |
const int |
code) | |
|
|
inline |
int vpException::getCode |
( |
void |
) | |
|
|
inherited |
const char * vpException::getMessage |
( |
void |
) | |
|
|
inherited |
const std::string & vpException::getStringMessage |
( |
void |
) | |
|
|
inherited |
send a reference (constant) related the error message (can be empty)
Definition at line 105 of file vpException.cpp.
const char * vpException::what |
( |
) | |
const |
throw | ( | |
| ) | | |
|
inherited |
Overloading of the what() method of std::exception to return the vpException message.
- Returns
- pointer on the array of char related to the error string.
Definition at line 122 of file vpException.cpp.