EasyDelegate  2.0
Delegate and deferred callers for C++11.
exceptions.hpp
Go to the documentation of this file.
1 
13 #ifndef _INCLUDE_EASYDELEGATE_EXCEPTIONS_HPP_
14 #define _INCLUDE_EASYDELEGATE_EXCEPTIONS_HPP_
15 
16 #include <stdexcept> // std::exception
17 
18 namespace EasyDelegate
19 {
24  class DelegateException : public std::exception { };
25 
32  {
33  // Public Methods
34  public:
40  virtual const char* what() const throw()
41  {
42  return "Attempted to call a class member method against a NULL 'this' pointer";
43  }
44  };
45 
52  {
53  // Public Methods
54  public:
60  virtual const char* what() const throw()
61  {
62  return "Attempted to perform a call against a NULL method pointer";
63  }
64  };
65 } // End NameSpace EasyDelegate
66 #endif // _INCLUDE_EASYDELEGATE_EXCEPTIONS_HPP_
virtual const char * what() const
Returns a pointer to the exception text from the exception.
Definition: exceptions.hpp:40
A general base exception type for all exceptions that is thrown by the EasyDelegate library...
Definition: exceptions.hpp:24
An exception type that is thrown by the EasyDelegate library when any delegate type has attempted to ...
Definition: exceptions.hpp:51
Namespace containing all EasyDelegate functionality.
Definition: deferredcallers.hpp:20
virtual const char * what() const
Returns a pointer to the exception text from the exception.
Definition: exceptions.hpp:60
An exception type that is thrown by the EasyDelegate library when a member delegate type has attempte...
Definition: exceptions.hpp:31