Updated TleException
parent
c6132e513f
commit
85c75b235d
|
@ -4,17 +4,21 @@
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
class TleException : public std::exception {
|
class TleException : public std::exception
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
TleException(const char* message)
|
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();
|
return message_.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue