libalerror  1.14.5
alerror/alerror.h
Go to the documentation of this file.
00001 
00010 #pragma once
00011 #ifndef _LIBALERROR_ALERROR_ALERROR_H_
00012 #define _LIBALERROR_ALERROR_ALERROR_H_
00013 
00014 # include <alerror/config.h>
00015 
00016 # include <stdexcept>
00017 # include <string>
00018 
00025 #define ALERROR(module, method, description)                    \
00026   AL::ALError(module, method, description, __FILE__, __LINE__)
00027 
00028 namespace AL
00029 {
00048   class ALERROR_API ALError : public std::runtime_error
00049   {
00050   public:
00059     ALError(const std::string& pModuleName,
00060             const std::string& pMethod,
00061             const std::string& pDescription,
00062             const char* pszFilename = 0,
00063             const unsigned int pnNumLine = 0);
00064 
00066     ALError();
00067 
00069     ALError(const ALError &e);
00070 
00074     virtual ~ALError() throw();
00075 
00080     QI_API_DEPRECATED const std::string  toString() const;
00085     QI_API_DEPRECATED const std::string& getModuleName() const;
00090     QI_API_DEPRECATED const std::string& getMethodName() const;
00095     QI_API_DEPRECATED const std::string& getFileName() const;
00100     QI_API_DEPRECATED int getLine() const;
00105     QI_API_DEPRECATED const std::string getDescription() const;
00106   };
00107 }
00108 
00109 #endif  // _LIBALERROR_ALERROR_ALERROR_H_
 All Classes Files Functions Defines