libcryptosec
InvalidStateException.h
Go to the documentation of this file.
1 #ifndef INVALIDSTATEEXCEPTION_H_
2 #define INVALIDSTATEEXCEPTION_H_
3 
5 
7 {
8 public:
10  {
11  this->where = where;
12  }
13  virtual ~InvalidStateException() throw () {}
14  virtual std::string getMessage() const
15  {
16  return "Invalid state exception.";
17  }
18  virtual std::string toString() const
19  {
20  return "Invalid state exception. Called by: " + this->where + ".";
21  }
22 };
23 
24 #endif /*INVALIDSTATEEXCEPTION_H_*/
virtual std::string toString() const
Definition: InvalidStateException.h:18
virtual ~InvalidStateException()
Definition: InvalidStateException.h:13
virtual std::string getMessage() const
Definition: InvalidStateException.h:14
Definition: LibCryptoSecException.h:8
std::string where
Definition: LibCryptoSecException.h:23
Definition: InvalidStateException.h:6
InvalidStateException(std::string where)
Definition: InvalidStateException.h:9