\class LCDException LCDException.h "api/LCDException.h" * \brief The exceptions thrown by this API. * \ingroup main * This class is for the exceptions thrown by the API if a problem occurs. */
| 29 | * This class is for the exceptions thrown by the API if a problem occurs. |
| 30 | */ |
| 31 | class LCDException { |
| 32 | private: |
| 33 | std::string _desc; |
| 34 | |
| 35 | public: |
| 36 | |
| 37 | explicit LCDException(const std::string& desc); |
| 38 | |
| 39 | ~LCDException(); |
| 40 | |
| 41 | LCDException(const LCDException& original); |
| 42 | const LCDException& operator=(const LCDException& rhs); |
| 43 | |
| 44 | /** |
| 45 | * \brief Get a textual description of the problem that occured. |
| 46 | * |
| 47 | * When an exception is caught, this method can be called to have a |
| 48 | * description of the problem. |
| 49 | * \return A string containing the error description. |
| 50 | */ |
| 51 | std::string what() const; |
| 52 | }; |
| 53 | |
| 54 | } // end of lcdapi namespace |
| 55 |
no outgoing calls
no test coverage detected