1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #ifndef _FASTCDR_EXCEPTIONS_EXCEPTION_H_
- #define _FASTCDR_EXCEPTIONS_EXCEPTION_H_
- #include "../fastcdr_dll.h"
- #include <string>
- #include <exception>
- namespace eprosima
- {
- namespace fastcdr
- {
- namespace exception
- {
-
- class Exception : public std::exception
- {
- public:
-
- virtual Cdr_DllAPI ~Exception() noexcept;
-
- virtual Cdr_DllAPI void raise() const = 0;
-
- virtual Cdr_DllAPI const char* what() const noexcept ;
- protected:
-
- Cdr_DllAPI Exception(const char* const &message) noexcept;
-
- Cdr_DllAPI Exception(const Exception &ex) noexcept;
- #if HAVE_CXX0X
-
- Cdr_DllAPI Exception(Exception&& ex) noexcept;
- #endif
-
- Cdr_DllAPI Exception& operator=(const Exception &ex) noexcept;
- #if HAVE_CXX0X
-
- Cdr_DllAPI Exception& operator=(Exception&&) noexcept;
- #endif
- private:
- const char* m_message;
- };
- }
- }
- }
- #endif
|