Updated TleException

feature/19
Daniel Warner 2011-12-13 23:04:46 +00:00
parent c6132e513f
commit 85c75b235d
1 changed files with 9 additions and 5 deletions

View File

@ -4,17 +4,21 @@
#include <exception>
#include <iostream>
class TleException : public std::exception {
class TleException : public std::exception
{
public:
TleException(const char* message)
: message_(message) {
: message_(message)
{
}
virtual ~TleException(void) throw () {
virtual ~TleException(void) throw ()
{
}
virtual const char* what() const throw () {
virtual const char* what() const throw ()
{
return message_.c_str();
}
@ -22,4 +26,4 @@ private:
std::string message_;
};
#endif
#endif