ALError is used to send exception. All NAOqi errors are based on exception. All user commands should be encapsulated in a try catch block. More...
#include "alerror/alerror.h"
Public Member Functions | |
ALError (const std::string &pModuleName, const std::string &pMethod, const std::string &pDescription, const char *pszFilename=0, const unsigned int pnNumLine=0) | |
Constructor. More... | |
ALError () | |
Constructor. More... | |
ALError (const ALError &e) | |
Copy Constructor. More... | |
virtual | ~ALError () throw () |
Destructor. More... | |
QI_API_DEPRECATED const std::string | toString () const |
deprecated More... | |
QI_API_DEPRECATED const std::string & | getModuleName () const |
deprecated More... | |
QI_API_DEPRECATED const std::string & | getMethodName () const |
deprecated More... | |
QI_API_DEPRECATED const std::string & | getFileName () const |
deprecated More... | |
QI_API_DEPRECATED int | getLine () const |
deprecated More... | |
QI_API_DEPRECATED const std::string | getDescription () const |
deprecated More... | |
ALError is used to send exception. All NAOqi errors are based on exception. All user commands should be encapsulated in a try catch block.
try { throw ALERROR("moduleTest", "methodeTest", "Should be working."); } catch (const std::exception& e) // or catch (const ALError& e) { std::cout << e.what() << std::endl; throw; // and not throw e; }
AL::ALError::ALError | ( | const std::string & | pModuleName, |
const std::string & | pMethod, | ||
const std::string & | pDescription, | ||
const char * | pszFilename = 0 , |
||
const unsigned int | pnNumLine = 0 |
||
) |
Constructor.
pModuleName | module's name that create error |
pMethod | method's name where error occured |
pDescription | error's descripton |
pszFilename | source code file name |
pnNumLine | source code line number |
AL::ALError::ALError | ( | ) |
Constructor.
AL::ALError::ALError | ( | const ALError & | e | ) |
Copy Constructor.
|
virtual |
Destructor.
QI_API_DEPRECATED const std::string AL::ALError::getDescription | ( | ) | const |
deprecated
QI_API_DEPRECATED const std::string& AL::ALError::getFileName | ( | ) | const |
deprecated
QI_API_DEPRECATED int AL::ALError::getLine | ( | ) | const |
deprecated
QI_API_DEPRECATED const std::string& AL::ALError::getMethodName | ( | ) | const |
deprecated
QI_API_DEPRECATED const std::string& AL::ALError::getModuleName | ( | ) | const |
deprecated
QI_API_DEPRECATED const std::string AL::ALError::toString | ( | ) | const |
deprecated