37 lines
737 B
C++
37 lines
737 B
C++
#ifndef CONCORDIA_EXCEPTION_HDR
|
|
#define CONCORDIA_EXCEPTION_HDR
|
|
|
|
#include<exception>
|
|
#include<string>
|
|
#include<string.h>
|
|
|
|
using namespace std;
|
|
|
|
/*!
|
|
Class representing an internal exception thrown in the Concordia library.
|
|
*/
|
|
class ConcordiaException : public exception {
|
|
public:
|
|
/*! Constructor.
|
|
*/
|
|
ConcordiaException() throw();
|
|
|
|
/*! Constructor with a message.
|
|
\param message message of the exception
|
|
*/
|
|
explicit ConcordiaException(const string & message) throw();
|
|
|
|
/*! Destructor.
|
|
*/
|
|
~ConcordiaException() throw();
|
|
|
|
/*! Implementation of the virtual method which provides the exception message.
|
|
*/
|
|
virtual const char* what() const throw();
|
|
|
|
private:
|
|
string _message;
|
|
};
|
|
|
|
#endif
|