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. | |
ALError () | |
Constructor. | |
ALError (const ALError &e) | |
Copy Constructor. | |
virtual | ~ALError () throw () |
Destructor. | |
QI_API_DEPRECATED const std::string | toString () const |
deprecated | |
QI_API_DEPRECATED const std::string & | getModuleName () const |
deprecated | |
QI_API_DEPRECATED const std::string & | getMethodName () const |
deprecated | |
QI_API_DEPRECATED const std::string & | getFileName () const |
deprecated | |
QI_API_DEPRECATED int | getLine () const |
deprecated | |
QI_API_DEPRECATED const std::string | getDescription () const |
deprecated |
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 |
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