.. _program_listing_file_include_ndef-lite_exceptions.hpp: Program Listing for File exceptions.hpp ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``include/ndef-lite/exceptions.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef EXCEPTIONS_H #define EXCEPTIONS_H #include #include class NDEFException : public std::exception { public: // Constructor/Destructor NDEFException(std::string exMsg) : msg(exMsg) {} ~NDEFException() throw() {} // Exception implementation virtual const char* what() const throw() { return this->msg.c_str(); } private: std::string msg; }; #endif // EXCEPTIONS_H