libcryptosec
LibCryptoSecException.h
Go to the documentation of this file.
1 #ifndef LIBCRYPTOSECEXCEPTION_H_
2 #define LIBCRYPTOSECEXCEPTION_H_
3 
4 #include <exception>
5 
7 
8 class LibCryptoSecException : public std::exception
9 {
10 public:
11  virtual ~LibCryptoSecException() throw () {}
12  virtual std::string getMessage() const = 0;
13  virtual std::string toString() const = 0;
14  virtual const char *what() const throw ()
15  {
16  return ((this->getMessage()).c_str());
17  }
18  virtual const std::string getDetails() const throw ()
19  {
20  return this->details;
21  }
22 protected:
23  std::string where;
24  std::string details;
25 };
26 
27 #endif /*LIBCRYPTOSECEXCEPTION_H_*/
virtual std::string getMessage() const =0
virtual std::string toString() const =0
virtual const std::string getDetails() const
Definition: LibCryptoSecException.h:18
virtual ~LibCryptoSecException()
Definition: LibCryptoSecException.h:11
virtual const char * what() const
Definition: LibCryptoSecException.h:14
Definition: LibCryptoSecException.h:8
std::string where
Definition: LibCryptoSecException.h:23
std::string details
Definition: LibCryptoSecException.h:24