libalerror  2.8.7.4
 All Classes Namespaces Files Functions Macros Pages
alerror.h
Go to the documentation of this file.
1 
10 #pragma once
11 #ifndef _LIBALERROR_ALERROR_ALERROR_H_
12 #define _LIBALERROR_ALERROR_ALERROR_H_
13 
14 # include <alerror/config.h>
15 
16 # include <stdexcept>
17 # include <string>
18 
25 #define ALERROR(module, method, description) \
26  AL::ALError(module, method, description, __FILE__, __LINE__)
27 
28 namespace AL
29 {
48  class ALERROR_API ALError : public std::runtime_error
49  {
50  public:
59  ALError(const std::string& pModuleName,
60  const std::string& pMethod,
61  const std::string& pDescription,
62  const char* pszFilename = 0,
63  const unsigned int pnNumLine = 0);
64 
66  ALError();
67 
69  ALError(const ALError &e);
70 
74  virtual ~ALError() throw();
75 
80  QI_API_DEPRECATED const std::string toString() const;
85  QI_API_DEPRECATED const std::string& getModuleName() const;
90  QI_API_DEPRECATED const std::string& getMethodName() const;
95  QI_API_DEPRECATED const std::string& getFileName() const;
100  QI_API_DEPRECATED int getLine() const;
105  QI_API_DEPRECATED const std::string getDescription() const;
106  };
107 }
108 
109 #endif // _LIBALERROR_ALERROR_ALERROR_H_
ALError is used to send exception. All NAOqi errors are based on exception. All user commands should ...
Definition: alerror.h:48