mark override 2 virtual methods.
This commit is contained in:
parent
b535303a0a
commit
713d475df6
|
@ -28,20 +28,20 @@ namespace SEXPR
|
|||
{
|
||||
public:
|
||||
PARSE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {}
|
||||
const char* what() const noexcept { return msg.c_str(); }
|
||||
const char* what() const noexcept override { return msg.c_str(); }
|
||||
virtual ~PARSE_EXCEPTION() noexcept {}
|
||||
private:
|
||||
std::string msg;
|
||||
};
|
||||
|
||||
class INVALID_TYPE_EXCEPTION : public std::exception
|
||||
{
|
||||
public:
|
||||
INVALID_TYPE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {}
|
||||
const char* what() const noexcept { return msg.c_str(); }
|
||||
virtual ~INVALID_TYPE_EXCEPTION() noexcept {}
|
||||
private:
|
||||
std::string msg;
|
||||
};
|
||||
class INVALID_TYPE_EXCEPTION : public std::exception
|
||||
{
|
||||
public:
|
||||
INVALID_TYPE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {}
|
||||
const char* what() const noexcept override { return msg.c_str(); }
|
||||
virtual ~INVALID_TYPE_EXCEPTION() noexcept {}
|
||||
private:
|
||||
std::string msg;
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue